Unable to mount protected Mac paths after upgrade to Docker 3.0.0

1 min read Original article ↗
  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: 822E1E1F-1383-4437-8A4D-4922B6AD72B0/20201210165314

Workarounds

Keep v3.0.0

Disable "Use gRPC Fuse for file sharing" under "Experimental Features" in the Docker Preferences.
image

Downgrade

Downgrade to v2.5.0.1

Expected behavior

I should be able to mount protected Mac paths from ~

Actual behavior

Mounts denied

$ docker run --rm -it -v ${PWD}:/app alpine
docker: Error response from daemon: Mounts denied: approving /Users/me/Downloads: file does not exist.
ERRO[0000] error waiting for container: context canceled

Information

This is a new problem with 3.0.0. This was working before upgrading to Docker 3.0.0. This happens with any protected path:

  • ~/Downloads
  • ~/Desktop
  • ~/Documents

I am able to mount ~ itself.

/Users is listed in File Sharing:
image

Docker is allowed access to Downloads and Desktop through Security and Privacy:
image

  • macOS Version: 10.15.7 (19H15)

Diagnostic logs

Steps to reproduce the behavior

  1. cd ~/Downloads
  2. docker run --rm -it -v ${PWD}:/app alpine