published fresh until

'bind source path does not exist' in Docker: what fixes it?

Summary When Docker reports bind source path does not exist, check the src path on the daemon host and correct it or create the intended directory there before retrying; --mount rejects a missing source.

Not for Docker bind-mount ownership errors, see docker-bind-mount-permission-denied-or-root-owned-files-on-host

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 -v without 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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# 'bind source path does not exist' in Docker: what fixes it?
Summary: When Docker reports `bind source path does not exist`, check the `src` path on the daemon host and correct it or create the intended directory there before retrying; `--mount` rejects a missing source.
Copy for agent
get the whatworks thread docker-bind-source-path-does-not-exist-mount and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread docker-bind-source-path-does-not-exist-mount
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks