Hi there, thanks for providing this excellent piece of software: Docker. I’m enjoying it and it changed my devops life!
Right now I’m setting up a Jenkins slave on a Mac (I work in a company that does iOS stuff) and used a Docker container to isolate it. Unfortunately I couldn’t manage to get it to work, due to “Permission denied” when trying to write on the host volume from within the container. I tried both 1.11.2 (the traditional docker integration with docker-machine and virtualbox, making sure to mount from within the /Users directory) and 1.12.0-rc2 (native) and I’m having the same issue with both. Of course I made sure to have the same UIDs on both sides.
After some research I found out that with the beta I could successfully mount an external drive into Docker and write to it (not limited to
/Users anymore). I guess there are specific permission issues on Mac that do not exist on Linux (I usually work with Docker on Linux). Maybe the permissions are restricted to the user running Docker whale on Mac? This is very different from Linux AFAICT. Any comment on this? Is this a known issue? I can’t see it mentioned at https://docs.docker.com/docker-for-mac/troubleshoot/
I installed Docker as user
jbq, and I wish to mount a volume from another user directory
/Users/jenkins and be able to write to it from within the container. After all Docker is supposed to be running as root like on Linux so it should work
docker run -v /Users/jenkins:/mount ubuntu touch /mount/test
touch: cannot touch '/mount/test': Permission denied
This is version 1.12.0-rc2 on Mac OS 10.11.3
If this is a known limitation or an intended feature (per-user Docker container isolation specific to the Mac platform) may I suggest to mention it in the documentation?