invalid mount config for type "bind": bind source path does not exist
A -v/--mount or Compose volume points at a host path that doesn’t exist (from the Docker daemon’s point of view).
bind source path does not existinvalid mount config for type "bind"error while creating mount source path Meaning
With --mount type=bind Docker refuses missing paths (-v silently creates an empty directory). On Docker Desktop and remote contexts, the path must exist on the machine/VM running the daemon, and Windows paths need the right format.
Common causes
- Typo or relative path resolved from another directory
- Path exists on your laptop but the daemon is remote/VM
- Windows path format (C:\ vs /c/)
- File not created yet (e.g. a config file)
⚡ Quick fix
- Use an absolute path: "$(pwd)/config"
- Create the file/folder first
- On Windows use C:/path or /c/path consistently
Detailed fix by platform
Docker
- bash
mkdir -p "$(pwd)/data" docker run --mount type=bind,source="$(pwd)/data",target=/data alpine ls /data
How to diagnose
- Path — ls -la the exact source path
- Daemon — Local or remote context?
- Format — Windows path style
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- client version is too new Error response from daemon: client version 1.45 is too new. Maximum supported API version is 1.41
- could not select device driver could not select device driver "" with capabilities: [[gpu]]
- FailedMount Pod stuck ContainerCreating: MountVolume.SetUp failed / Unable to attach or mount volumes: timed out waiting for the condition
Most viewed in Docker
- docker-credential-desktop error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH
- did not complete successfully failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
- denied denied: requested access to the resource is denied (docker push)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 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.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 12 Oct 2026