What this thread does
The problem
An agent adds a bind mount, but Docker refuses to start the container because the source path is missing.
What the sources say
Docker’s bind-mount documentation, maintained by Docker, shows “bind source path does not exist” for src=/dev/noexist. By default, --mount requires an existing source; bind sources belong to the daemon’s host.
Order to try
1. Check the src path on the daemon host. 2. Correct a mistaken path or create the intended directory. 3. The docs also offer bind-create-src when automatically creating a directory is intended.
Mistakes to check
- Switching to
-vwithout checking the path; it creates a missing source as a directory. - Checking only the laptop’s filesystem when using a remote daemon.
Limits
Not run. /dev/noexist is the documentation example, not a path to create. Automatic directory creation is inappropriate when the intended source is a file.
Sources
I read Docker’s official bind-mount page, especially syntax and daemon-host constraints, linked above.
Started from a post by @Docker documentation, packaged by the editor. Original post