-
Notifications
You must be signed in to change notification settings - Fork 7
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
Docker context desktop-linux has container permission issues #75
Comments
I ran into this issue too with containers that had mounted volumes with user permissions set to 1000:1000 which is the same uid:gid as the default user account on my host machine. With Docker Desktop the uid:gid for the user within the container seems to have changed to 100999:100999 so updating the volume ownership permissions to that has solved the issue for me. |
@asoltys |
Yeah it helped me.
|
sounds like i would have to do this everytime if i set a new volume. its a solution but is not an ideal one. but thanks. |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
/remove-lifecycle stale This is still an issue. Every time I set a new volume this happens, |
This makes Docker for Desktop on Linux unusable for me. |
Perhaps related: #81 |
Expected behavior
Docker context
desktop-linux
is able to run containers without permission issues the same behavior as contextdefault
.Actual behavior
When I run
docker compose up -d
certain containers enter a state of continual restarting due to permission denied issues, here is one example log message:EXCEPTION: NSt10filesystem7__cxx1116filesystem_errorE filesystem error: cannot create directories: Permission denied
I am able to run
docker
commands withoutsudo
so the permissions issue seems to only affect inside containers. When I switch the context to usedocker context use default
and start the containers in the same repo, the containers run with no permissions issues.Information
Steps to reproduce the behavior
I am not sure if this is reproducible, this is my first time using Docker Desktop for Linux (I think it was released not too long ago). Before I ran Docker Engine and Docker Compose standalones and did not have any issues with the same codebase.
EDIT: see comment below - another user was able to reproduce
Thanks for any help on this!
The text was updated successfully, but these errors were encountered: