Skip to content

The host directory gets owned by wrong user #21

@yhpark

Description

@yhpark

When you inject a host directory as /ghost-override, its owner gets replaced by any user on the machine whose uid and gid is 1000. This is because the chown command in start.bash changes not only the owner of the /ghost-override directory inside the container, but also the outside directory to ghost:ghost whose uid and gid are 1000.

Articles with similar issue:
http://stage1.io/blog/managing-permissions-in-your-docker-volumes/
http://chapeau.freevariable.com/2014/08/docker-uid.html

So one dirty solution would be to make an option to pass uid and gid to be used..

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