Skip to content

PyStow is causing permission issues in non-root docker containers #201

Description

@maximusunc

I'm currently using bmt and it looks like the sub-dependency PyStow just updated or something and is now causing errors in Docker containers being deployed into Kubernetes. Docker images need to run as non-root users, but PyStow is trying to put files at /home/non_root_user/.data but that is failing permissions. Here's the error message:

PermissionError: PyStow was not able to create its home directory in due to a lack of permissions. This can happen, e.g., if you're working on a server where you don't have full rights. See https://pystow.readthedocs.io/en/latest/installation.html#configuration for instructions on choosing a different home folder location for PyStow to somewhere where you have write permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions