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

File permissions on Linux host machine #1

Open
bw35 opened this issue Feb 12, 2022 · 0 comments
Open

File permissions on Linux host machine #1

bw35 opened this issue Feb 12, 2022 · 0 comments

Comments

@bw35
Copy link

bw35 commented Feb 12, 2022

Hi,

When running the container on a Linux host as described in Readme.md, the files on host volume end up to be owned by root:root rendering them read-only for a normal user. This can be overcome by telling docker to use a different user:

docker run --user $(id -u):$(id -g) -it --rm -v $PWD:/lab throwtheswitch/drsurly-course1

Solution taken from:
https://dille.name/blog/2018/07/16/handling-file-permissions-when-writing-to-volumes-from-docker-containers/

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