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
{{ message }}
Repository navigation
feat: run the runner as a low-privilege account (rootless Docker) #121
Run the self-hosted GPU runner service as a dedicated low-privilege account that uses rootless Docker, instead of the operator account in the docker group (root-equivalent; job steps can read operator secrets). Tracking/migration: ycpss91255-lab/.github#37; evaluation: ycpss91255-lab/isaac#292.
Scope was narrowed: installing rootless Docker itself (account, uidmap, subuid/subgid, linger, service ordering, CDI/GPU, Delegate drop-in, removal) is a separate module in ycpss91255/initialization (issue linked below), not part of this repo. This issue is only the runner side.
Scope for this repo
Register/run the runner service as the low-privilege account; set DOCKER_HOST=unix:///run/user/<uid>/docker.sock in the runner service environment.
Keep that account out of the docker group and without sudo (this is what keeps the rootful daemon unreachable from job steps).
Depends on the rootless Docker module being installed for that account.
isaac CI needs small changes for rootless (cache dir ownership etc.); see isaac#292.
Lifetime
This is the path for the next ~6 months. When k3s + ARC (kubernetes mode, no dind) goes live, the runner becomes a pod and this host-service setup is replaced (verified end to end; isaac pipeline rework tracked in ycpss91255-lab/isaac#322).
changed the title [-]feat: low-privilege runner account with rootless Docker[/-][+]feat: run the runner as a low-privilege account (rootless Docker)[/+]on Nov 17, 2026
Priority change: the owner's direction is to go straight to k3s + ARC (verified end to end, see #101 and ycpss91255-lab/.github#37) rather than invest in the host-runner path. This issue is therefore deprioritized and only to be done if the k3s migration slips (the rootless Docker module it depends on is already merged: ycpss91255/initialization#422). Blocker for the k3s path is the isaac pipeline rework: ycpss91255-lab/isaac#322.
Tried on the k3s test host (test_1: amd64, Ubuntu 22.04, kernel 6.8, Docker 29.9.3 rootful, one shared disk with ~93 GB free). Temporary account, fully removed afterwards. No GitHub runner was registered.
Account: no docker/sudo group, locked password, linger on, user@<uid>Delegate=cpu cpuset io memory pids drop-in, dockerd-rootless-setuptool.sh install, user docker.service socket-wait drop-in.
Packages added: uidmap and docker-ce-rootless-extras pinned to the installed engine version (5:29.9.3). A simulated install first showed no engine/containerd upgrade, so the rootful daemon was never restarted. The nvidia runtime registration step was skipped (not needed for a build).
Finding on the module: _dr_converge hard-codes usermod --add-subuids 100000-165535. On this host 100000:65536 already belongs to another account, so the module would create an overlapping range. useradd auto-allocated a free range (362144), so a plain create-then-check avoids it. Suggest the module use the range useradd allocated or pick the next free one.
Deviation: the rootless daemon defaulted to the containerd image store (overlayfs snapshotter). Because of the disk budget I set features.containerd-snapshotter=false in the account's own daemon.json (classic overlay2). The containerd store would keep compressed blobs next to the unpacked layers; not measured.
Build (devel target, CI args USER_NAME=ci USER_GROUP=ci USER_UID=1000 USER_GID=1000 HARDWARE=x86_64, isaac main fb20db6, cold and warm in the account's own store, no push)
devel-test was not built: its test-tools base image returns 403 on an anonymous pull (as in the BuildKit option). devel is the CI step that follows it.
Cold: 2586 s (43.1 min). Base image pull + unpack 1134 s (~11 MB/s from nvcr.io), the apt + IsaacLab install layer ~1308 s elapsed, the rest of the stages under 2 min.
Warm (identical rebuild, all layers cached): 2 s.
Disk: free space on / went 93 GB -> 63 GB at the low point (during the install layer), so the build consumed about 30 GB. Afterwards: image 31.0 GB, build cache 10.3 GB, account's data dir 30 GB (du). A guard (stop the account's user manager under 63 GB, hard floor 60 GB) was running and did not fire; the margin was about 3 GB, so this host is at its limit for one copy of this build.
Not measured: a changed-last-layer rebuild, GPU test suite, cancelled-job container cleanup.
Teardown and baseline
Order: user manager and runtime dir stopped, linger disabled, userdel -r (home with all images/cache), subuid/subgid lines removed, Delegate drop-in removed + daemon-reload (no docker restart), both packages purged.
Verified identical to before: /etc/passwd, /etc/group, /etc/subuid, /etc/subgid, full dpkg-query -W list, /home listing, /run/user, linger dir empty, no user@* drop-ins left. Free space on / back to 93 GB. Rootful docker stayed active with its 35 containers untouched. I did not read /etc/shadow or /etc/gshadow for the comparison (the account is gone from /etc/passwd/group).
Evidence (scrubbed): rootless-docker-isaac under the test-host data directory of the ci_cluster workspace (build logs, timings, disk samples every 10 s).
Activity
[-]feat: low-privilege runner account with rootless Docker[/-][+]feat: run the runner as a low-privilege account (rootless Docker)[/+]ycpss91255 commentedon Nov 17, 2026
Priority change: the owner's direction is to go straight to k3s + ARC (verified end to end, see #101 and ycpss91255-lab/.github#37) rather than invest in the host-runner path. This issue is therefore deprioritized and only to be done if the k3s migration slips (the rootless Docker module it depends on is already merged: ycpss91255/initialization#422). Blocker for the k3s path is the isaac pipeline rework: ycpss91255-lab/isaac#322.
ycpss91255 commentedon Nov 22, 2026
Option (a) measured: dedicated low-privilege account + rootless Docker, Isaac image build
Tried on the k3s test host (test_1: amd64, Ubuntu 22.04, kernel 6.8, Docker 29.9.3 rootful, one shared disk with ~93 GB free). Temporary account, fully removed afterwards. No GitHub runner was registered.
Setup (steps of ycpss91255/initialization#423
docker-rootless, replicated by hand, not the module file itself)user@<uid>Delegate=cpu cpuset io memory pidsdrop-in,dockerd-rootless-setuptool.sh install, userdocker.servicesocket-wait drop-in.uidmapanddocker-ce-rootless-extraspinned to the installed engine version (5:29.9.3). A simulated install first showed no engine/containerd upgrade, so the rootful daemon was never restarted. The nvidia runtime registration step was skipped (not needed for a build)._dr_convergehard-codesusermod --add-subuids 100000-165535. On this host100000:65536already belongs to another account, so the module would create an overlapping range.useraddauto-allocated a free range (362144), so a plain create-then-check avoids it. Suggest the module use the rangeuseraddallocated or pick the next free one.overlayfssnapshotter). Because of the disk budget I setfeatures.containerd-snapshotter=falsein the account's owndaemon.json(classicoverlay2). The containerd store would keep compressed blobs next to the unpacked layers; not measured.Build (
develtarget, CI argsUSER_NAME=ci USER_GROUP=ci USER_UID=1000 USER_GID=1000 HARDWARE=x86_64, isaac main fb20db6, cold and warm in the account's own store, no push)devel-testwas not built: itstest-toolsbase image returns 403 on an anonymous pull (as in the BuildKit option).develis the CI step that follows it./went 93 GB -> 63 GB at the low point (during the install layer), so the build consumed about 30 GB. Afterwards: image 31.0 GB, build cache 10.3 GB, account's data dir 30 GB (du). A guard (stop the account's user manager under 63 GB, hard floor 60 GB) was running and did not fire; the margin was about 3 GB, so this host is at its limit for one copy of this build.Teardown and baseline
userdel -r(home with all images/cache), subuid/subgid lines removed, Delegate drop-in removed +daemon-reload(no docker restart), both packages purged./etc/passwd,/etc/group,/etc/subuid,/etc/subgid, fulldpkg-query -Wlist,/homelisting,/run/user, linger dir empty, nouser@*drop-ins left. Free space on/back to 93 GB. Rootful docker stayed active with its 35 containers untouched. I did not read/etc/shadowor/etc/gshadowfor the comparison (the account is gone from/etc/passwd/group).Evidence (scrubbed):
rootless-docker-isaacunder the test-host data directory of the ci_cluster workspace (build logs, timings, disk samples every 10 s).