-
Notifications
You must be signed in to change notification settings - Fork 154
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 Compose integration permissions issue on macOS #228
Comments
May be the same issue as #224 (?) |
I think this is indeed the same issue as #224, and I think the suggestion there of having the sidecar container act as the entity for changing permissions is probably the only answer since it doesn't seem like Docker is going to add a mechanism to configuring this anytime soon (though, of course, that would be hugely preferable). I'll have to do some experimentation though to understand how this behaves, because the volumes are really just directories on the Docker host filesystem and I'm not sure if permissions set on the mountpoint in the container filesystem namespace will propagate to the directories on the host (or even other containers with separate filesystem namespaces). As long as they "stick" from the perspective of the container(s), I think it should be okay either way, I'm just uncertain about the longevity of such settings for external volumes and the visibility from other containers. I do know that if UID/GID ownership is set on the Docker host, then those permissions will be visible at the mountpoint, but Linux namespace behavior can be fickle, so testing will be the only way to know. |
i'm going to close in favor of #224 for now and continue the discussion there. |
Which version of Mutagen are you using (
mutagen version
)?0.12.0-beta2
Which operating system (platform/version/architecture) are you using?
macOS 10.15.6
docker desktop v. 2.3.0.4 (46911) [stable channel]
What is the issue that you're experiencing?
I’m having some trouble with permissions in my container mounting a couple of mutagen-synced volumes. Below is an excerpt of my
docker-compose.yml
:I’m mounting both those named volumes in a linux-derived php container like so:
The issue is that the
wordpress
volume is (to me, correctly) being mounted in the container with uid:gid1000:1000
, but thewp-content
volume is mounting with uid:gidroot:root
.I’ve seen mention of the fact that the mutagen sidecar service / container runs as root and that there are workarounds by targeting a subdirectory of the named volume somehow. Indeed, everything inside the
wp-content
mount in the php container is1000:1000
, but I needwp-content
itself to also be1000:1000
. I tried mangling the alpha and beta urls many different ways, but I can’t figure out how to get thewp-content
mountpoint where I need it in the container with the permissions I need it to have. Doubly confounding that the wordpress volume mounts as1000:1000
which I assume is somehow due to it being an external volume.The text was updated successfully, but these errors were encountered: