Reputation: 71
I have a problem mounting a host machine volume to a docker image. I've added a folder to docker File sharing settings, but it doesn't get any effect. What do I have to do to solve the problem?
For example, I try to mount a volume which was added to File sharing settings in Docker Desktop, but I get permission denied error
~$ docker run --rm -it -v /Users/:/vm-root alpine ls -l /vm-root
docker: Error response from daemon: Mounts denied: EOF.
ERRO[0000] error waiting for container: context canceledenter code here
Docker Desktop Screenshot:
Upvotes: 7
Views: 4633
Reputation: 1822
Solution prvided by François Alexandre Docker: Mounts denied. The paths ... are not shared from OS X and are not known to Docker
With the new version 3.0.0 of Docker for mac, you need to disable use gRPC FUSE for file sharing in Preferences>Experimental Features.
Upvotes: 1
Reputation: 6431
You have overlapping directories. I suggest only exporting /Users/username
directories and avoid /Users
Upvotes: 1