You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docker): reach a WSL 2 gateway through Docker Desktop's host alias
The Docker driver defaulted the supervisor's gateway endpoint to
127.0.0.1. When the gateway runs inside a WSL 2 distribution and the
daemon is Docker Desktop, the host-networked supervisor runs in Docker
Desktop's VM, whose loopback is not the distribution's, so every
sandbox failed with ControlSupervisorStartFailed.
When grpc_endpoint is unset, detect that combination from the gateway
host's kernel release and the daemon's reported operating system, and
default to host.docker.internal, which Docker Desktop routes to the
Windows host that WSL forwards the gateway's loopback listener from.
The generated server certificate already includes that name. Docker
Engine inside WSL and Docker Desktop outside WSL keep the loopback
default, and an explicit grpc_endpoint still wins.
Closes#3880
Signed-off-by: fede-kamel <fkamelhar@gmail.com>
Common options in `[openshell.drivers.docker]` are `socket_path`, `grpc_endpoint`, `sandbox_runtime_image`, `supervisor_image`, `image_pull_policy`, and `sandbox_pids_limit`. When `socket_path` is unset, the driver uses the socket found by auto-detection.
96
96
97
-
Docker Desktop must have host networking enabled, and it cannot use Enhanced Container Isolation. Set `grpc_endpoint` when sandboxes cannot reach the gateway on host loopback. For GPU sandboxes, configure Docker CDI before starting the gateway.
97
+
Docker Desktop must have host networking enabled, and it cannot use Enhanced Container Isolation. When the gateway runs inside WSL 2 with Docker Desktop, the driver connects sandboxes to the gateway through `host.docker.internal` automatically. Set `grpc_endpoint` when sandboxes cannot reach the gateway on host loopback. For GPU sandboxes, configure Docker CDI before starting the gateway.
0 commit comments