Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The host directory gets owned by wrong user #21

Open
yhpark opened this issue Dec 25, 2014 · 0 comments
Open

The host directory gets owned by wrong user #21

yhpark opened this issue Dec 25, 2014 · 0 comments

Comments

@yhpark
Copy link

yhpark commented Dec 25, 2014

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant