Repository navigation
Description
Description
On a host where Docker is installed, running and reachable, but podman also happens to be installed, every
NemoClaw onboarding attempt stops at the first preflight check with "Docker is not reachable", and the
suggested fix tells the user to add themselves to the docker group — which they already are.
Root cause: NemoClaw sets DOCKER_HOST for every subprocess it spawns. In dist/lib/runner.js
(src/lib/runner.ts) the module body runs, at import time:
const dockerHost = detectDockerHost();
if (dockerHost) {
process.env.DOCKER_HOST = dockerHost.dockerHost;
}On these hosts detectDockerHost() resolves to podman's rootless socket
(unix:///run/user/1000/podman/podman.sock) instead of the live Docker socket, and the value is applied without
checking that the chosen socket actually serves a daemon. Every later probe inherits it, so
docker info --format '{{json .}}' returns a non-zero status and runCapture (called with ignoreError)
collapses that to an empty string. assessHost() then reports dockerInstalled: true but
dockerReachable: false and runtime: "unknown", and the CLI prints the docker-group remediation, which is
unrelated to the real cause.
The effect is a hard stop: onboarding cannot run at all on such a host.
Platform scope: Reproduced on two independent DGX Spark hosts (GB10, aarch64, Ubuntu 24.04); a third Spark
without podman installed is unaffected, as are Ubuntu-on-WSL2 hosts without podman.
Regression: Unknown — the same behaviour was observed on v0.0.97, v0.0.103 and v0.0.109.
Environment
Device: DGX Spark (NVIDIA GB10)
OS: Ubuntu 24.04 LTS
Architecture: aarch64
Node.js: v22.23.1
Docker: 29.2.1 (also seen with 28.3.3)
podman: 4.9.3, installed but its rootless socket is not serving
NemoClaw: v0.0.103 (also v0.0.97, v0.0.109)
OpenShell CLI: 0.0.85
Steps to Reproduce
1. Use a Linux host with a working Docker Engine and the current user in the docker group, and with podman also
installed. Confirm Docker is healthy from a normal shell:
docker info --format '{{json .}}' | wc -c -> ~13000 bytes
docker info --format '{{.ServerVersion}}' -> 29.2.1
id -nG | tr ' ' '\n' | grep -c docker -> 1
2. Install NemoClaw and run onboarding:
NEMOCLAW_YES=1 nemoclaw onboard --non-interactive --fresh --name probe
3. Read the environment NemoClaw uses for its own probes:
node --input-type=module -e 'import("$HOME/.nemoclaw/source/dist/lib/runner.js").then(r =>
console.log(r.runCapture(["env"],{ignoreError:true}).split("\n").filter(l => /^DOCKER/.test(l)).join("\n")))'
4. Read what the preflight concludes:
node --input-type=module -e 'import("$HOME/.nemoclaw/source/dist/lib/onboard/preflight.js").then(m => {
const h = m.assessHost(); console.log(JSON.stringify({dockerInstalled:h.dockerInstalled,
dockerReachable:h.dockerReachable, runtime:h.runtime})); })'
5. Re-run step 4 with DOCKER_HOST pointed at the real Docker socket:
DOCKER_HOST=unix:///var/run/docker.sock node --input-type=module -e '...same as step 4...'
Expected Result
NemoClaw selects a container endpoint that actually answers. When a live Docker daemon is reachable, the mere
presence of podman on the host does not redirect NemoClaw's probes to a socket that is not serving, onboarding
proceeds past preflight, and any remediation text names the real cause.
Actual Result
Step 2 stops immediately:
[1/8] Preflight checks
--------------------------------------------------
x Docker is not reachable. Please fix Docker and try again.
Suggested fix:
- Add user to docker group: ... sudo usermod -aG docker $USER ...
Step 3 shows the injected value:
DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
Step 4 (NemoClaw's own preflight):
{"dockerInstalled":true,"dockerReachable":false,"runtime":"unknown"}
Step 5 (identical call, DOCKER_HOST overridden):
{"dockerInstalled":true,"dockerReachable":true,"runtime":"docker"}
A single environment variable is the whole difference. Additional checks that narrow it down:
runCapture(["docker","info","--format","{{json .}}"])returns length 0 under NemoClaw's env, while a plain
execFileSyncof the same argv in the same shell returns 13016 characters.- With
includeStderrthe captured JSON has empty client fields ("ID":"","Driver":"","Images":0), i.e. the
docker CLI reached no daemon. - Hiding the podman binary and the podman socket file does not help, because the injected variable remains.
- Starting podman's rootless socket does not help either.
- The user is already in the docker group, so the suggested fix is a dead end.
Logs
# NemoClaw's sanitized probe environment (docker-related entries only)
DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
# Same host, ordinary shell
$ env | grep -i DOCKER
(no output)
$ docker info --format '{{.ServerVersion}}'
29.2.1
# Preflight verdicts
default -> {"dockerInstalled":true,"dockerReachable":false,"runtime":"unknown"}
DOCKER_HOST=unix:///var/run/docker.sock -> {"dockerInstalled":true,"dockerReachable":true,"runtime":"docker"}
after `systemctl --user start podman.socket` -> {"dockerInstalled":true,"dockerReachable":false,"runtime":"unknown"}
# Host without podman (same NemoClaw version) - unaffected
-> {"dockerInstalled":true,"dockerReachable":true,"runtime":"docker"}
# Workaround for anyone blocked by this
export DOCKER_HOST=unix:///var/run/docker.sock
nemoclaw onboard ...
Activity
jason-ma-nv commentedon Aug 26, 2026
Investigated as part of the auto-fix loop. Deferring — I can't reproduce this exact host combination (a live reachable Docker daemon and podman both installed) on the loop's configured hosts, and the fix site (
detectDockerHostinsrc/lib/platform.ts) is the same function I recently patched for #10248, so a further unverified change there carries elevated risk to every host's onboarding.What the code actually does today (post-#10248):
For the reporter's outcome (
DOCKER_HOSTends up pointing at podman) to happen,probe(undefined).reachablemust be returningfalseeven though the reporter's own interactive shell has a workingdocker info/docker versionwith noDOCKER_HOSTset — that's the actual defect surface, not the candidate-ordering loop itself (which correctly bails tonullif it finds a conflicting reachable Docker socket after podman, via theselectedIdentitymismatch check). That in turn means either:probeDockerHostcaps every probe (including theundefinedone) atDOCKER_PROBE_TIMEOUT_MS = 3_000(3 seconds) viadockerSpawnSync. Ifdocker versionis slower than 3s to answer on this specific host under load, the default probe would spuriously report unreachable even though a longer-lived interactivedocker infosucceeds.getDockerSocketCandidatesonly checks/run/docker.sockand/var/run/docker.sockfor the live-Docker fallback (these are almost always the same file via the/var/run→/runsymlink on most distros, so effectively one path). If this DGX Spark's Docker is configured with a non-default socket (a real possibility on DGX OS / NVIDIA container-toolkit-managed installs, or a rootless Docker setup), the loop would never even reach it as a candidate, and podman — the only reachable+identifiable socket it does find — wins by elimination, exactly matching the report (including that starting podman's own socket didn't change the outcome, since podman was already winning regardless).probeDockerHostusesdocker version, the reporter's manual checks useddocker info. These can behave differently against an unhealthy/slow daemon; worth confirming they agree before ruling this out.What would confirm the actual cause: on the affected host,
docker context ls/cat /etc/docker/daemon.json/systemctl status docker.socket(or the rootless equivalent) to see the real socket path Docker is actually listening on, plus timingdocker version --format '{{json .}}'under the sanitized envdetectDockerHostuses (HOME,USER,LOGNAME,PATHonly) to rule the 3s timeout in or out. I don't have DGX Spark + podman hardware in this loop's configured verify hosts to gather that myself.Unassigning so a maintainer with access to a Docker+podman DGX Spark can pin down which of the above it is before changing the shared detection function again.
Dongni-Yang commentedon Aug 26, 2026
PR #10379 fixes the detection defects this report exposes. It does not close the issue, because I cannot run a DGX Spark with Docker and Podman installed and so cannot confirm your host is cured.
What the report pins down. For detection to end at Podman,
probe(undefined).reachablehas to be false — NemoClaw has to conclude that plaindocker, with no override, reaches nothing — while your shell'sdocker infoworks. The one difference between those two calls is the environment: the probe randocker versionwith onlyHOME,USER,LOGNAMEandPATH, while every Docker command NemoClaw runs afterwards gets the full subprocess allowlist. Names that decide reachability are in the gap:XDG_RUNTIME_DIRselects a rootless daemon socket,SSH_AUTH_SOCKauthenticates anssh://context, the proxy names reach atcp://one. Your step 5 does not rule this out — an explicitDOCKER_HOSTreturns before any probe runs, so it never exercised the probe environment.The change.
/run/docker.sock,/var/run/docker.sock,/run/user/<uid>/docker.sock, then Podman's. Rootless Docker's socket was never a candidate at all, even though it sits in the same runtime directory as Podman's.A regression test reproduces your outcome exactly on the old code: with a daemon reachable only through
XDG_RUNTIME_DIR, detection returnsunix:///run/user/1000/podman/podman.sock.What would confirm it on your host. Two commands, from an ordinary shell on an affected Spark:
The first is the exact environment the old probe used. A non-zero exit confirms the cause above. The second names the endpoint your CLI resolves by default; if it is not
/run/docker.sockor/var/run/docker.sock, tell me the path and I will handle that candidate too.Two parts of the report stay open and are not addressed here: the remediation text still names the docker group when the real cause is the endpoint, and
docker infoanddocker versioncan disagree on an unhealthy daemon.fix(platform): keep the Docker probe on the runner's proxy exclusions
test(platform): cover the probe's no-verdict classifier
Dongni-Yang commentedon Aug 26, 2026
Correction to my previous comment: I claimed
XDG_RUNTIME_DIRselects a rootless daemon socket for the Docker CLI. That is wrong. I tested it — withXDG_RUNTIME_DIRpointing at a directory holding a listeningdocker.sock, the CLI still used its default context and never touched that socket. The Docker CLI does not discover a rootless endpoint from the runtime directory; a rootless install setsDOCKER_HOSTin the shell instead, and NemoClaw already honors an explicitDOCKER_HOSTbefore any probe runs.The rest of the diagnosis stands, and so does the fix. The verifiable mechanisms are narrower than I wrote:
SSH_AUTH_SOCKauthenticates anssh://Docker context, and the proxy names decide how atcp://one is routed. The general contract is what matters — the probe predicts whether the CLI's real Docker commands will reach a daemon, so it must not ask that question under a narrower environment than those commands get. Both PRs now hold to that, including theNO_PROXYexclusions the real commands receive.What this changes for your host: if your Docker default is a plain local socket with no context, no proxy, and no
ssh://endpoint, then no name in the gap explains the failure, and the environment fix alone may not cure your host. The two commands I asked for still decide it, and the first one is the one that matters:If that exits
0, the probe environment was never your problem and the remaining suspect is the 3-second probe timeout, which PR #10379 also covers: a probe that times out no longer counts as a refusal, so it can no longer redirect the CLI to a Podman socket. Timing that same command would confirm it:fix(platform): end the socket scan once Docker answers
test(platform): fold the early-exit proof into the Docker fallback case
fix(platform): probe Docker with the environment its commands run in (#…