Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Feature request / question: Support for remote Docker host (SSH containers) #4

Description

@kenfdev

Question

Is there a plan to support running sandbox containers on a remote Docker host (e.g., via SSH or Unix socket forwarding)?

What I Tried

I wanted to run discobot on macOS while having the actual containers execute on a remote Linux host (WSL over SSH).

Blocker 1 — macOS always uses VZ, ignoring DOCKER_HOST

server/cmd/server/main.go registers providers based on OS:

if runtime.GOOS == "darwin" && cfg.DockerHost == "" { // ← i changed this part to force Mac to use docker when DockerHost is set
    // VZ (Virtualization.framework) is registered
} else {
    // Docker is registered
}

Blocker 2 — DOCKER_HOST=ssh://... fails with Go SDK

When using DOCKER_HOST=ssh://wsl, the Go Docker SDK tries to resolve wsl via DNS, which fails because it's an ~/.ssh/config alias, not a real hostname.

Workaround: SSH socket forwarding avoids this entirely:

# Terminal 1 — forward the remote Docker socket locally
ssh -N -L /tmp/docker-wsl.sock:/var/run/docker.sock wsl

# Terminal 2 — start the server pointing at the forwarded socket
DOCKER_HOST=unix:///tmp/docker-wsl.sock pnpm dev:server

With this workaround, the container does start on the remote host.


Blocker 3 — Agent API is unreachable from the server

The server appears to contact the Agent API at localhost:<port>, but when the container runs on a remote host, localhost no longer reaches it. Requests hang or fail.


Ask

  1. Is remote Docker host support something you plan to add?
  2. Is there a recommended workaround for the Agent API reachability issue in the meantime?

Thanks for a great project!

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions