-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Controlling Unix-style perms on directories passed through from shared Windows drives #3298
Comments
@friism Can you take a look at Shaun's question? Also are you the only one fielding all these technical d4win questions? Is there another person I can cc to give you some leeway? |
@ShaunCurrier you cannot change permissions inside the VM. This is a limitation of the SMB-based approach that Docker for Windows uses for making host-mounted volumes work. You'll either have to use non-host-mounted volumes or find a way to make your software work with the default file permissions. |
@friism thanks for the definitive answer on that. I was beginning to think this was the case. @londoncalling should this limitation on permissions be explicitly called out in the docs? Without it, some may struggle to change mounted volume permissions, not realizing it's an impossible task, which will give them a negative experience with Docker for Windows. |
@ShaunCurrier yes, definitely - I'll add that to the docs. |
Fixed via PR #3307 |
Hi Guys, The problem is , although I changed the folder permission to 777 by Cygwin, the folder /data/hxe seemed still not 777. So I guess that's the failure cause, however, I have no idea how I can change the windows folder permission to rwx. Thanks in advance! |
As a followup, the documentation mentions
However, it seems, from my experience that user is always root and group is always root. If this is indeed the case, it would be great if this also could be spelled out in the documentation. Thanks! |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
File: docker-for-windows/index.md, CC @londoncalling
Would it be possible to get more elaboration in this document about the finer points of controlling the Unix-style permissions that are present on volumes that are passed into the docker container from shared Windows folders?
I am struggling with a dockerized application that refuses to proceed without specific permissions being set on certain volumes/directories and I'm finding precious little Docker for Windows documentation that explains how to control the permissions or if they can even be controlled. The application wants
0770
permissions, but the VM that Docker Engine is running within has them set to `0755' and it appears they cannot be changed.I have tried changing permissions various ways on the Windows side and changing permissions inside the container via (for example)
docker exec -it -u root nextcloud chmod -R 770 /var/www/html
, but no dice.More details in the languishing issue I raised against the application: nextcloud/docker#70
In any event, thanks for the great software you're creating. :)
The text was updated successfully, but these errors were encountered: