-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Permission issue, cannot start container #910
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
Comments
What's the UID that owns |
@deansheather That folder is owned by root. I was hoping this could have been a solution to editing my docker folders for various containers easily. |
Same issue here. Any workarounds? |
Requesting further information. Failure to reply means it was fixed in your end and I'll close this automatically after 3 days. |
By this weekend il give it a shot again. I'm using a standard do ker setup on Ubuntu 18.04. I just wanted to have access to all appdata without having to 777 it all. |
temporary fix:
|
@mkono87 @BirkhoffLee @finzzz this is expected Docker behavior. The permission is denied because when you use bind mounts (/path/on/host:/path/in/container), Docker will create that directory on both sides if both directories don't exist on either host/container and since Docker itself runs as root, it will create it as root. Since the code-server image runs as a non-priv user (coder), it can't write to that root directory created by the bind mount, hence the "permission denied." TL;DR the fix: Edit: Also creating the directory on the host (chown 1000:1000) beforehand also works. |
See #1307 |
Description
Used the example to create a docker-compose but im getting permisson errors and the container wont start.
Related Issues
The text was updated successfully, but these errors were encountered: