-
Notifications
You must be signed in to change notification settings - Fork 117
Description
I’m trying to use GitHub Copilot together with Docker MCP Gateway to enhance my assistant workflow.
However, it seems impossible to use the MCP gateway when running inside a devcontainer, even though the Docker CLI works fine.
I’m mounting the host Docker socket into the container (/var/run/docker.sock
), and normal Docker commands work as expected.
The problem only occurs when running:
sudo docker mcp gateway run
This always returns:
Docker Desktop is not running
Steps to Reproduce
-
Run a devcontainer with the host Docker socket mounted.
-
Verify Docker works:
sudo docker version
✅ Works (client & server info shown).
-
Compile
docker-mcp
binary locally. -
Run:
sudo docker mcp gateway run
❌ Fails with
Docker Desktop is not running
.
Expected Behavior
docker mcp gateway run
should start normally, just like other Docker commands that work fine inside the container.
Actual Behavior
The command fails with:
Docker Desktop is not running
Environment
- Host OS: MacOS Sequoia 15.6.1
- Docker Desktop: 4.44.3 (202357)
- Docker Engine Client: 28.3.3 (API 1.51)
- Docker Engine Server: 28.3.2 (API 1.51)
- containerd: 1.7.27
- runc: 1.2.5
Inside devcontainer, Docker CLI works fine except for the MCP gateway command.
Additional Notes
- I can run all other Docker commands without issue.
- It looks like the MCP gateway may be checking specifically for Docker Desktop availability, instead of just using the mounted socket.
- Could this be a limitation/bug of the MCP integration not working in containerized environments?