Mounts denied 🐳 Docker

Docker Desktop: Mounts denied: The path is not shared from the host and is not known to Docker

Docker Desktop (macOS) can only bind-mount folders listed under Settings → Resources → File sharing.

Seen on: Docker

Meaning

Docker Desktop runs Linux in a VM; only shared host folders are visible to it. /Users is shared by default, but /Volumes, /opt, /private/var or external drives are not.

Common causes

  • Path outside the shared folders (/Volumes, /opt, /tmp symlinks)
  • Shared folder list edited/reset
  • Using a symlinked path

⚡ Quick fix

  1. Add the folder in Docker Desktop → Settings → Resources → File sharing
  2. Move the project under your home directory
  3. Use the real path, not a symlink

Detailed fix by platform

Docker Desktop

  1. # Settings → Resources → File sharing → + /Volumes/Work → Apply & restart

How to diagnose

  1. Path — Real path (pwd -P)
  2. Shares — Docker Desktop file sharing list

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.