Repository navigation
feat(cli): run a managed local gateway from a Windows client - #14641
Merged
Merged
Conversation
A Windows client can now run a managed local gateway on Docker Desktop or a Podman machine. spec.gateway.engine names the engine's named pipe for the client, and the gateway container binds /var/run/docker.sock in the engine's Linux VM, which the SDK derives from the pipe. On Windows, nemoclaw onboard offers the local pipes. Resolves #14632. Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Windows client can now run a managed local gateway on Docker Desktop or a Podman machine.
spec.gateway.enginenames the engine's named pipe for the client, and the gateway container binds/var/run/docker.sockin the engine's Linux VM, which the SDK derives from the pipe. On Windows,nemoclaw onboardoffers the local pipes.Problem
After #14635, a Windows client deploys only with an external gateway. The schema requires
^unix:///for a managed gateway's engine, and the gateway container binds the engine's socket path as/var/run/docker.sock. A pipe has no such path: the engine runs in Docker Desktop's or Podman's Linux VM. Managed services, application containers, and the Ollama proxy follow the managed gateway's engine and refuse anything but a Unix socket too. Podman's native API, which managed Podman gateways read, is reachable only over a Unix socket.Resolves #14632.
Change
nemoclaw-docker:engine_socketderives the path at which a container reaches a local engine. A Unix socket keeps its own path, unchanged. A named pipe gets/var/run/docker.sock: Docker Desktop serves its engine there, and a Podman machine links/run/docker.sockto the API socket of its rootful or rootless mode, the socket its pipe forwards to (GetPodmanDockerTmpConfig, updated on start afterpodman machine set --rootful). Since the path can be derived, no new field is added.engineacceptsnpipe:////./pipe/NAME. The gateway container's bind, managed service processes, application containers, and an Ollama proxy that follows the gateway's engine accept a local engine through the derived socket. Schema and configuration reference are regenerated.podman_jsonreads Podman's native API over a named pipe on Windows, using reqwest'swindows_named_pipe. The managed Podman container check and the rootless-networking prerequisite no longer refuse non-Unix clients.DOCKER_HOST, then the context underUSERPROFILE\.docker), otherwisenpipe:////./pipe/docker_engine, and the default Podman machine'snpipe:////./pipe/podman-machine-default.Left out:
enginestays a Unix socket: widening it would change the intent record's format and refuse existing deployments.spec.gateway.enginestaysunix:///var/run/docker.sockon every client; onboarding writes the pipe on Windows.~/.docker/run/docker.sockor Colima's socket, which an engine in a VM may not serve; Managed local gateway on macOS binds the client's engine socket path, not the VM's #14640 tracks it.Beyond CI
No Windows host with Linux containers ran this change, and GitHub's Windows runners run only Windows containers. CI tests the Windows client against fake engines on named pipes, so a gateway on Docker Desktop or a Podman machine is unverified: that
/var/run/docker.sockin the VM reaches the engine, that a rootless Podman machine's SELinux allows the bind, and that the client reaches a Podman gateway's loopback endpoint. #14639 tracks a live run.