docker: Error response from daemon: Mounts denied: approving /path/to/file does not exist

20.5k views Asked by At

My docker command:

docker run -it --rm -v $(pwd):/mutcompute ens_net:v3

Gives me the following error:

docker: Error response from daemon: Mounts denied: approving /Users/danny/Documents/Codes/Python/net_containers/ensemble_net: file does not exist.

However, I have used this same command when in the same directory for over 6 months now. It just opens my directory in the current docker container so I can run my software that is preinstalled.

Today my docker updated to version 3.0.0 (MacOS).

I am assuming this is due to the update?

I have restarted docker and I have restarted my computer. Still does not work.

2

There are 2 answers

4
myeongkil kim On BEST ANSWER

[Latest EDIT] June 8, 2021

Still not fixed, note in Docker 3.3.3 the option is no longer in Experimental features, but it's moved into General settings. Unchecking this still helps to resolve the issue. – vasek

in Docker Desktop

  1. Open Preferences
  2. Click General
  3. Disable - Use gRPC FUSE for file sharing

enter image description here

  • For a lower version, see First Answer.

[EDIT] January 4, 2021

It doesn't appear to have been completely fixed yet. It is recommended to just disable it.
as described in First Answer


[EDIT] December 18, 2020

This issue is fixed in Docker 3.0.1(macOS).

  1. Open Preferences
  2. Click Experimental Features
  3. Disable - Use gRPC FUSE for file sharing
  4. Update the version to ^3.0.1
  5. Enable - Use gRPC FUSE for file sharing

First Answer

I have the same experience after updating to Docker Desktop 3.0.0(macOS). and solved it as below.

  1. Open Preferences
  2. Click Experimental Features
  3. Disable - Use gRPC FUSE for file sharing enter image description here
1
Shobha Tripathi On

For windows: add a new folder path by clicking on + icon at docker screenshot