bind source path does not exist Docker Origin: Platform & cloud Last updated 12 Oct 2026

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).

Exact message you may see bind source path does not existinvalid mount config for type "bind"error while creating mount source path
Seen on: Docker

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

  1. Use an absolute path: "$(pwd)/config"
  2. Create the file/folder first
  3. On Windows use C:/path or /c/path consistently

Detailed fix by platform

Docker

  1. bash
    mkdir -p "$(pwd)/data"
    docker run --mount type=bind,source="$(pwd)/data",target=/data alpine ls /data

How to diagnose

  1. Path — ls -la the exact source path
  2. Daemon — Local or remote context?
  3. 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:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

client version is too new — Error response from daemon: client version 1.45 is too new. Maximum supported API version is 1.41 (Docker)client version is too…could not select device driver — could not select device driver "" with capabilities: [[gpu]] (Docker)could not select devi…FailedMount — Pod stuck ContainerCreating: MountVolume.SetUp failed / Unable to attach or mount volumes: timed out waiting for the condition (Kubernetes)FailedMountlookup registry-1.docker.io: no such host — dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build (Docker)lookup registry-1.doc…Mounts denied — Docker Desktop: Mounts denied: The path is not shared from the host and is not known to Docker (Docker)Mounts deniedMulti-Attach error — Multi-Attach error for volume: Volume is already exclusively attached to one node and can't be attached to another (Kubernetes)Multi-Attach errorpermission denied (volume) — Permission denied writing to a mounted volume inside a Docker container (Docker)permission denied (vo…PVC Pending — PersistentVolumeClaim stuck in Pending (no persistent volumes available / waiting for first consumer) (Kubernetes)PVC Pendingbind sour…

Explore the map of this error Full error map →

🧠 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.