Repository navigation
feat(cli): deploy from a Windows client through local engines' named pipes - #14635
Merged
Merged
Conversation
…pipes A Windows client reaches a local Docker Desktop or Podman engine through its named pipe, npipe:////./pipe/NAME, and hides typed credentials at its prompts, so it can deploy with an external gateway whose image engine is that pipe or an ssh:// engine. A managed local gateway still needs a Unix client (#14632). Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
Contributor
bollard checks that a Unix socket exists before it configures a client, and macOS runners have no /var/run/docker.sock. Signed-off-by: Carlos Villela <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
cv
added a commit
that referenced
this pull request
Nov 19, 2026
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. ## 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_socket` derives 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.sock` to the API socket of its rootful or rootless mode, the socket its pipe forwards to ([`GetPodmanDockerTmpConfig`](https://github.com/containers/podman/blob/main/pkg/machine/ignition/ignition.go), updated on start after `podman machine set --rootful`). Since the path can be derived, no new field is added. - SDK: a managed gateway's `engine` accepts `npipe:////./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_json` reads Podman's native API over a named pipe on Windows, using reqwest's `windows_named_pipe`. The managed Podman container check and the rootless-networking prerequisite no longer refuse non-Unix clients. - Discovery: on Windows, onboarding lists the pipe the Docker client selects (`DOCKER_HOST`, then the context under `USERPROFILE\.docker`), otherwise `npipe:////./pipe/docker_engine`, and the default Podman machine's `npipe:////./pipe/podman-machine-default`. - Tests: an SDK test compiles managed Docker and Podman gateways, a vLLM service, an application container, and an Ollama proxy on pipes. Discovery tests cover the Windows candidates. The OpenShell provider's gateway storage, gateway installation, and gateway prerequisite contract tests, and the NemoClaw provider's discovery contract test, now also run on Windows against fake engines on pipes. The Podman prerequisite scenario now reads Podman's native API over a pipe there. - Docs: release note, support matrix, current limits, install, usage, the provider reference, and the execution-target and onboarding designs. Left out: - The HCL integration scenarios with managed gateways still run only on Unix: their test files name the Docker alias of the fixed Unix fixture socket, and adding them to the Windows partitions would lengthen CI's critical path. - An Ollama proxy's own `engine` stays a Unix socket: widening it would change the intent record's format and refuse existing deployments. - The SDK's default engine for an omitted `spec.gateway.engine` stays `unix:///var/run/docker.sock` on every client; onboarding writes the pipe on Windows. - macOS: a managed gateway still binds the client's Unix socket path, such as Docker Desktop's `~/.docker/run/docker.sock` or Colima's socket, which an engine in a VM may not serve; #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.sock` in 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. Signed-off-by: Carlos Villela <[email protected]>
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 now reaches a local Docker Desktop or Podman engine through its named pipe and hides typed credentials at its prompts. It can plan, apply, and destroy a deployment with an external gateway whose
spec.gateway.engineis that pipe or anssh://engine.Problem
The
windows_amd64CLI refused local engines (local container-engine connections are unsupported on this platform) and hidden credential input (hidden credential input is unsupported on this platform). It could read images for planning only from anssh://engine, so a Windows user with Docker Desktop couldn't deploy.Resolves #14631.
Change
nemoclaw-docker: an engine endpoint may benpipe:////./pipe/NAME, a named pipe on this machine, as Docker Desktop'snpipe:////./pipe/docker_engineand Podman'snpipe:////./pipe/podman-machine-defaultare.Engine::connectopens Unix sockets on Unix clients and named pipes on Windows clients through bollard'spipefeature, which the workspace already enables. For the other platform's transport it names the client that transport needs.nemoclaw-provider: a local engine gets the local host observer on every client. On Windows, as on macOS, capacity measurement refuses the engine, which runs in a VM the client can't measure.nemoclaw-cli: on Windows, a credential prompt clears the console'sENABLE_ECHO_INPUTand restores the console mode afterwards, including on cancellation. It usescrossterm_winapi, which crossterm already brings in; line input stays on, so input is read as before.Fixture::engineserves fake engines on a named pipe on Windows instead of through the SSH relay. The Windows contract and integration tests, including the SDK and CLI deployment tests with an external gateway, now reach a local engine the way Docker Desktop's clients do. A Windows unit test checks console echo in a child process with a console of its own.Left out:
npipe://host, so its connection isn't the blocker.nemoclaw onboardstill offers only Unix sockets as local engines.Beyond CI
No Windows host with Linux containers ran this change, and GitHub's Windows runners run only Windows containers, so CI tests the Windows client against fake engines on named pipes. These remain unverified:
npipe:////./pipe/docker_engineor a Podman machine's pipe. To check, on Windows with Docker Desktop in Linux-containers mode, start an OpenShell gateway, setspec.gateway.engineto the pipe, and runnemoclaw plan,apply, anddestroy.ssh://engine.