Startup · troubleshooting record
Docker-based MCP server cannot reach the Docker daemon
A Docker/container-based MCP server failed because the Docker CLI could not connect to the daemon. The usual causes are that Docker is not running, the socket path is wrong, or the client environment cannot access the socket.
Symptoms
- Server exits with cannot connect to the Docker daemon.
- The docker command works in a terminal but not from the MCP client.
- A container-based server never appears in the client.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
Docker Desktop or the Docker daemon is not running
The Docker CLI requires a running daemon; without it, container launch fails before MCP initialization.
The client does not inherit DOCKER_HOST or the user cannot access the socket
Docker access depends on environment variables and socket permissions.
The configured image or entrypoint is invalid
An image pull or entrypoint failure also causes the container to exit.
Possible causes
- The image name or tag is wrong.
- The container lacks a required volume mount.
- An architecture mismatch prevents the image from running.
- A corporate policy blocks Docker Desktop.
What still needs verification
- `docker info` succeeds in the client's environment.
- The image can be pulled and run manually.
- The container needs access to host files through explicit mounts.
Affected environments
Fixes
Verify the daemon and image
- Start Docker and run `docker info`.
- Pull the image and run its documented test command.
- Use the exact image name and tag from the server documentation.
Fix environment and mounts
- Launch the client from an environment with access to the Docker socket.
- Add explicit volume mounts for required paths.
- Do not expose the Docker socket to containers unnecessarily.
Verify the fix
- The container starts and stays running under the MCP client.
- The server responds to initialization.
- Tools that need host resources work through explicit mounts.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- docs.docker.com/engine/daemon/Official documentation · checked Oct 23, 2026 · documented
Docker documents daemon startup and client connection requirements.