Skip to content

MCP gateway and client commands not working in WSL - "Docker Desktop is not running" #241

@ThePlenkov

Description

@ThePlenkov

[AI Generated Issue]

Description

When trying to use MCP gateway and client commands in WSL, they fail with "Docker Desktop is not running" error, even when Docker Desktop is actually running. Specifically:

docker mcp gateway run
Docker Desktop is not running

docker mcp client connect vscode
Docker Desktop is not running

This appears to be related to the broader issue described in docker/for-win#14873 where Docker CLI plugins (including docker desktop status, docker ai, and docker mcp commands) fail to detect Docker Desktop when run from WSL.

Reproduce

  1. Start Docker Desktop on Windows
  2. Verify Docker Desktop is running
  3. Open WSL terminal
  4. Try to run any of these commands:
    docker mcp gateway run
    docker mcp client connect vscode
  5. Observe error message: "Docker Desktop is not running"

Expected behavior

The MCP gateway and client commands should work properly in WSL, just as they do in Windows PowerShell/CMD.

Workaround

Currently, users need to run these commands from Windows PowerShell/CMD instead of WSL.

Related Issues

This appears to be part of the same underlying issue as:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions