-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Running docker/docker-compose - "Cannot mkdir, permission denied, EACCES" #1188
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
Ok so after checking a few more things with a friend of mine, it turns out that docker does the following:
See output below:
|
Seeing the same issue. Either the one-line docker launch is wrong or it requires some better explanation. |
I don't think it is something wrong with the command itself, but rather the setup of the Dockerfile or container. It seems that the container volumes are created during the container creation, while the extra directories are created on run-time. When this happens you have mismatch between the May I know which OS/System you are running docker on? I also tried running |
Did you found a version that works? I get the same error for nearly all versions from latest to |
I found a workaround by modifying the Dockerfile, check #1191 |
#1188 Fixes issue with permissions mounting in directories in the container. Folders are generated by root causing issues when the container user "coder" wants to create sub-folders. This fix solves it, at least on Crostini (ChromeOS)
code-server
version: Current ":latest" tag on docker.Description
I am experiencing the following error when running the provided docker command in this repo, and when trying to run from a docker-compose config.Docker-compose
Docker:
I also tried chmod 777 -R on the home directory in the container with no luck. Not sure if it is directly related to code-server but thought it would be ok to check here
The text was updated successfully, but these errors were encountered: