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:
/Users/username
directories and avoid/Users
– Larissa