Search code examples
macosdockersettingsdocker-machine

Docker error: Error response from daemon: Mounts denied: on OS X


I've currently a problem and can't find a solution. I've created an apps folder in my document directory of my user and set it as apps path in the config. When I try to run the docker I get following error:

Error response from daemon: Mounts denied: The path /users/username/documents/development/docker-apps is not shared from OS X and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing.

I've added the /Users in the preferences globally but the issue is still there:

enter image description here

When I try to add the path I get an error massage that it's not possible because I've added the /Users globally.

My research ended with no helpful answers so I would really appreciate if you can help me with this problem.


Solution

  • I've found the problem. It seems that OS X with Docker has a problem with the path. On Linux all works fine but in OS X not. So when you write this here in the terminal, it will work but not in the Docker:

    /users/username/documents/development/docker-apps
    

    So when you add another / at the end like this:

    /users/username/documents/development/docker-apps/
    

    it will work.