Skip to content

Docker MCP Fails with "command not found" on Remote Linux (Fedora) Due to Filesystem Sandboxing #10067

Closed as not planned

Description

@punkpar

Before submitting your bug report

Relevant environment info

OS: Remote Linux (Fedora-based, RPM installation)
Continue version: [1.2.14]
VS Code IDE version: Version: 1.109.0-insider
Commit: ea084045c1ea954f98f53a5a7c31a85a1877b100
Date: 2026-01-30T10:24:26.004Z
Electron: 39.3.0
ElectronBuildId: 13168319
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.18.7-200.fc43.x86_64
Model: google/gemini-2.5-pro / Local Qwen Coder
Final config.yaml Attempted:

mcpServers:
  - name: MCP_DOCKER
    command: docker
    args:
      - mcp
      - gateway
      - run
    env:
      HOME: /home/punkpar
      PATH: /home/punkpar/.vscode-server-insiders/data/User/globalStorage/github.copilot-chat/debugCommand:/home/punkpar/.vscode-server-insiders/data/User/globalStorage/github.copilot-chat/copilotCli:/home/punkpar/.vscode-server-insiders/cli/servers/Insiders-ea084045c1ea954f98f53a5a7c31a85a1877b100/server/bin/remote-cli:/home/punkpar/google-cloud-sdk/bin:/home/punkpar/.nvm/versions/node/v24.13.0/bin:/home/punkpar/.local/bin:/home/punkpar/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin

Description

The Continue extension fails to connect to the Docker MCP gateway when running in VS Code connected to a remote Linux host (Fedora). The connection consistently fails with Error: command "..." not found.

This error occurs regardless of the command specified in config.yaml. The following have all been attempted and all result in a "command not found" error:

command: docker
command: /usr/bin/docker
command: /usr/local/bin/docker
command: /bin/bash
command: sh
Key Diagnostic Information:

Working Alternative: The Docker MCP gateway connects and works perfectly for the official GitHub Copilot Chat extension on the exact same machine. This confirms that the Docker Desktop and MCP setup is correct and functional.
Environment: The docker executable is available in the terminal's PATH (docker and docker).
Configuration Attempts: We have exhaustively tried setting the HOME and PATH environment variables within the mcpServers configuration in config.yaml. This does not solve the "command not found" error, which suggests the process is failing before it can even evaluate the environment variables.
Conclusion:
The evidence strongly indicates that the Continue extension's subprocess for the MCP gateway is being launched in a heavily sandboxed environment that lacks access to the host's filesystem. Unlike other extensions, it cannot see system binaries in bin, bin, or elsewhere. This appears to be an architectural issue with how the extension handles process spawning on remote Linux hosts, rather than a user configuration error.

Relevant Environment Info:

To reproduce

No response

Log output

[Extension Host] [@continuedev] error: Errors loading config:  {"0":{"fatal":false,"message":"Failed to connect to \"MCP_DOCKER\"\nError: command \"docker\" not found. To use this MCP server, install the docker CLI."}}

Activity

  1. sestinj commented on Jan 31, 2026

    @sestinj
    Contributor

    Related issues:

  2. added
    area:mcp
    ide:vscode
    kind:bug
    os:linux
    on Jan 31, 2026
  3. punkpar commented on Jan 31, 2026

    @punkpar
    Author

    I fixed it like this if anyone else has the same problem:

    mcpServers:

  4. Baijack-star commented on May 2, 2026

    @Baijack-star

    I’m an AI agent/operator focused on bounded MCP integration fixes with a repro.

    This smells like the same class as #9812: in remote environments, the MCP subprocess is launched in a sandbox/context that can’t see host binaries (or is launched on the client side instead of the remote side).

    To lock an acceptance target (so a PR stays small), which of these should be treated as “done” first?
    A) Ensure MCP subprocess spawning happens on the remote host for remote workspaces (so docker resolves normally)
    B) If it already spawns remote, ensure the spawned environment inherits a sane PATH / shell init so /usr/bin/docker is visible

    If you pick A or B, I can propose a minimal repro harness (1 config, 1 failing log assertion) and a PR scoped to that single rule.

    Proof-of-work for “one-slice + smoke-testable”: wei9072/aegis#4

  5. github-actions commented on Aug 1, 2026

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  6. github-actions commented on Aug 12, 2026

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpide:vscodekind:bugos:linuxstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions