Repository navigation
Description
Problem
#6414 builds the devcontainer image FROM the devtools image and replaces docker-in-docker with the podman-in-podman Feature (dockerCompat). CI proves the build and a start on Docker of a GitHub-hosted runner, and the agent proved a build and a start on Docker in the devcontainer. Nobody can prove the start on the owner's host from an agent session: rootless Podman on WSL2 with --userns=keep-id (uid 1000), the home volume and the runArgs of .devcontainer/devcontainer.json.
Expected
After the first release with #6414, a person rebuilds the devcontainer on that host and runs, as vscode:
grep VERSION_CODENAME /etc/os-releaseprintsforky.docker versionprintsPodman Engine, andpodman --url unix:///var/run/docker.sock versionshows aServer:section.podman run --rm quay.io/podman/helloworks.- The
docker runsteps ofci.yml(the image smoke steps) work. devops docker imageslists the images of the rootful store, andpodman save <image> | sudo podman loadcopies an image from the rootless store to it.git config --get-all credential.https://github.com.helperprints the empty value and then!gh auth git-credential.printenv DOCKER_HOSTprintsunix:///var/run/docker.sockin a VS Code terminal and in an agent session.
Then remove the orphan dind-var-lib-docker-* volumes with podman volume rm.
Proof
- Each command above exits 0 on the host, and the person records the output in a comment.
Source: #6414
Alternatives check of 2026-11-20: not-applicable.
Class: test, no search.
Tool: none found.
Proposed design
Problem statement
#6414 builds the devcontainer image FROM the devtools image and replaces docker-in-docker with the podman-in-podman Feature (dockerCompat). CI proves the build and a start on a Docker GitHub-hosted runner, but no runner holds the owner's rootless Podman host on WSL2 with --userns=keep-id, the global-devcontainer-home volume and the workspace runArgs. On 2026-11-20 the owner pulled ghcr.io/dan-petty/devops-cli/devcontainer:latest and rebuilt the devcontainer on the host; the first rebuild had read the metadata of the stale local :latest tag, and the second rebuild after the pull passed every check except the docker run image smoke steps that use --tmpfs ...:uid=1000,gid=1000, which Podman refuses with unknown mount option "uid=1000" (#6468). The owner also removed the orphan dind-var-lib-docker-* volumes. This issue records the host proof and keeps the smoke-step check until #6468 lands.
Acceptance criteria
Requirement: Devcontainer starts on the rootless Podman host
The devcontainer SHALL start on the owner's rootless Podman host on WSL2 from the released devtools-based image.
Scenario: Read the codename on the host
- WHEN After pulling
ghcr.io/dan-petty/devops-cli/devcontainer:lateston the host, the owner rebuilds the devcontainer and runsgrep VERSION_CODENAME /etc/os-releaseasvscode. - THEN The command exits 0 and prints
forky.
Requirement: The container starts from the published image metadata
The rebuilt container SHALL run /usr/local/share/podman-init.sh as PID 1 and use the rootless Podman store under /var/lib/containers-rootless.
Scenario: Read PID 1 and the rootless store
- WHEN The owner runs
ps -p 1 -o args=andpodman info --format '{{.Store.GraphRoot}}'asvscodein the rebuilt container. - THEN
psprints/usr/local/share/podman-init.sh, andpodman infoprints/var/lib/containers-rootless/vscode.
Requirement: Docker client reaches the Podman engine
The docker client in the container SHALL reach the Podman engine through /var/run/docker.sock.
Scenario: Docker version in the container
- WHEN The owner runs
docker versionandpodman --url unix:///var/run/docker.sock versionasvscodein the container. - THEN
docker versionprintsPodman Engine, and the second command shows aServer:section.
Requirement: A container runs inside the container
podman run SHALL start a container inside the devcontainer.
Scenario: Run the hello image
- WHEN The owner runs
podman run --rm quay.io/podman/helloasvscode. - THEN The command exits 0.
Requirement: The image smoke steps pass in the container
The docker run image smoke steps of .github/workflows/ci.yml SHALL pass in the devcontainer once #6468 replaces the --tmpfs ...:uid=1000,gid=1000 option that Podman refuses.
Scenario: Run the service image smoke steps
- WHEN After ci: run the image smoke steps under Podman as well as Docker #6468 lands, the owner runs the
docker runsteps of the Service Image Smoke Test of.github/workflows/ci.ymlon the published service image asvscodein the container. - THEN Every step exits 0, including the steps with
--tmpfs /home/devops:uid=1000,gid=1000.
Requirement: An image moves to the rootful store
The owner SHALL copy an image from the rootless store to the rootful store with podman save and sudo podman load.
Scenario: Copy an image between the stores
- WHEN The owner runs
devops docker imagesand thenpodman save quay.io/podman/hello | sudo podman loadasvscode. - THEN
devops docker imageslistsquay.io/podman/hello:latestof the rootful store, and the copy exits 0.
Requirement: The git credential helper stays
The container SHALL keep the empty credential helper and !gh auth git-credential.
Scenario: Read the credential helpers
- WHEN The owner runs
git config --get-all credential.https://github.com.helperasvscode. - THEN The command prints the empty value and then
!gh auth git-credential.
Requirement: DOCKER_HOST points to the Podman socket
Each session SHALL see DOCKER_HOST=unix:///var/run/docker.sock.
Scenario: Read DOCKER_HOST in both sessions
- WHEN The owner runs
printenv DOCKER_HOSTin a VS Code terminal and in an agent session. - THEN Both sessions print
unix:///var/run/docker.sock.
Requirement: The orphan docker volumes are gone
The owner SHALL remove each orphan dind-var-lib-docker-* volume from the host with podman volume rm.
Scenario: List the volumes on the host
- WHEN The owner runs
podman volume lson the host after removing eachdind-var-lib-docker-*volume withpodman volume rm. - THEN
podman volume lslists nodind-var-lib-docker-*volume.
Existing Tool Considered
The alternatives check of 2026-11-20 returned not-applicable for a test-class change and named no tool. The open, maintained tool that covers the need is the Dev Containers CLI (@devcontainers/cli), which the devtools image carries (.devcontainer/Dockerfile:49) and the repository's devcontainer-smoke action uses with devcontainer up and devcontainer exec (.github/actions/devcontainer-smoke/action.yml:60-.github/actions/devcontainer-smoke/action.yml:79). It starts the image as vscode and already asserts that docker version prints Podman Engine, that DOCKER_HOST is the socket, that the rootful API shows a Server: section and that the credential helpers are the empty value and !gh auth git-credential. It lacks the owner's host: the smoke action runs on a GitHub-hosted runner with Docker, and the workspace configuration cannot start there (--userns=keep-id, the global-devcontainer-home volume, --gpus all, --pids-limit=8192; .devcontainer/devcontainer.json:7, .devcontainer/devcontainer.json:132). The owner runs the live commands on the host for that part. No own code is built.
Key questions
- How does the project prove the devcontainer start on the owner's rootless Podman host?: A person, the owner, runs the live commands on the host after pulling the published image so Dev Containers reads its metadata, and records each command and its output in a comment on this issue. The Dev Containers CLI cannot prove the host from a runner: the
devcontainer-smokeaction starts the image withdevcontainer upand runs the same commands on a GitHub-hosted runner with Docker, and the workspace configuration (--userns=keep-id, theglobal-devcontainer-homevolume,--gpus all) cannot start there. (best practice) [sources: .github/actions/devcontainer-smoke/action.yml:60, .github/actions/devcontainer-smoke/action.yml:79, .devcontainer/devcontainer.json:7, .devcontainer/devcontainer.json:132, docs/DEVCONTAINER_USAGE.md:53]- Rejected: A CI job on a GitHub-hosted runner. The runner starts Docker and holds no rootless Podman with the owner's
--userns=keep-id, the home volume or the GPU. - Rejected: The existing
devcontainer-smokeaction on a GitHub-hosted runner. The action starts the image and runs the same commands, but on the runner's Docker, not on the owner's rootless Podman host. - Chosen: A person's live run on the owner's host. Only the owner's host holds rootless Podman with
--userns=keep-id, theglobal-devcontainer-homevolume and the GPU; the owner ran it on 2026-11-20 and recorded the results in the issue.
- Rejected: A CI job on a GitHub-hosted runner. The runner starts Docker and holds no rootless Podman with the owner's
- Which settings of the devcontainer must the host honour?: The image
ghcr.io/dan-petty/devops-cli/devcontainer:latest; therunArgs--gpus all,--pids-limit=8192and--sysctl=net.ipv4.ping_group_range=1000 1000; theglobal-devcontainer-homevolume on/home/vscode; the.sshbind mount; and thepodman-in-podman:1Feature withdockerCompat, whoseremoteEnvsetsDOCKER_HOST=unix:///var/run/docker.sockand the twoGIT_CONFIG_*credential helpers. [sources: .devcontainer/devcontainer.json:3, .devcontainer/devcontainer.json:7, .devcontainer/devcontainer.json:8, .devcontainer/devcontainer.json:132, .devcontainer/image/devcontainer.json:16, .devcontainer/image/devcontainer.json:41, docs/DEVCONTAINER_USAGE.md:53] - Why do the
docker runimage smoke steps fail in the devcontainer?: Podman refuses the--tmpfs <path>:uid=1000,gid=1000option, so the steps at.github/workflows/ci.yml:498and.github/workflows/ci.yml:505fail withunknown mount option "uid=1000"; the same option is in the Service Image Smoke Test of.github/workflows/release.yml:359and.github/workflows/release.yml:366. Every other smoke step passes on the published service image (ci: run the image smoke steps under Podman as well as Docker #6468). [sources: .github/workflows/ci.yml:498, .github/workflows/ci.yml:505, .github/workflows/release.yml:359, openspec/changes/archive/2026-11-19-6414-devcontainer-from-devtools/proposal.md:25] - What does this issue do with the smoke steps that Podman refuses?: Keep the smoke-step criterion and record ci: run the image smoke steps under Podman as well as Docker #6468 as a dependency, because ci: run the image smoke steps under Podman as well as Docker #6468 changes the workflows to drop the option Podman refuses; the owner reruns the steps in the devcontainer and records the output once it lands. (best practice) [sources: .github/workflows/ci.yml:498, openspec/changes/archive/2026-11-19-6414-devcontainer-from-devtools/tasks.md:34]
- Chosen: Keep the criterion and depend on ci: run the image smoke steps under Podman as well as Docker #6468. The issue's Expected names the smoke steps, and ci: run the image smoke steps under Podman as well as Docker #6468 removes the option that Podman refuses.
- Rejected: Drop the criterion and leave the steps to ci: run the image smoke steps under Podman as well as Docker #6468. The proof that the steps run in the devcontainer belongs to this issue; ci: run the image smoke steps under Podman as well as Docker #6468 only changes the workflow.
- Rejected: Run only the smoke steps without the
--tmpfsoption. The failing steps carry the probes of the service image, so skipping them proves no probe.
- Which store do
devops docker imagesandsudo podmanread?: The rootful store;docker,podmananddocker composeasvscodeuse the rootless store, sopodman save <image> | sudo podman loadcopies an image between the two. [sources: docs/DEVCONTAINER_USAGE.md:37, src/devops_cli/commands/docker.py:77] - Who runs the live proof on the owner's host?: The owner. The owner ran it on 2026-11-20 and recorded each result in the issue comments, including the first rebuild from the stale local
:latesttag and the second rebuild after the pull. (a person decides) - What did the owner decide about the live proof and the remaining work?: The live proof passes on the host, the orphan
dind-var-lib-docker-*volumes are removed, and the only open point is thedocker runsmoke steps that wait on ci: run the image smoke steps under Podman as well as Docker #6468. (a person decides)
Open questions
- Who runs the live proof on the owner's host? (a person decides)
- What did the owner decide about the live proof and the remaining work? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 19, 2026
Both items concern the devcontainer's container-engine feature, but #5073 upgrades docker-in-docker to v4 while the candidate verifies the podman-in-podman result on a specific host.fix(devcontainer): build the devcontainer image FROM devtools (#6472)
devops-cli-service commentedon Nov 20, 2026
Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 20, 2026
First rebuild on the host (2026-11-20): the container has the old metadata
The container has the files of the new image (v0.182.3, created 2026-11-20 06:15 UTC), but Dev Containers started it with the
devcontainer.metadataof the image before #6472. Podman built the container fromlocalhost/vsc-devops-cli-<hash>-uid:latest, the UID image that Dev Containers builds overghcr.io/dan-petty/devops-cli/devcontainer:latest.Evidence, as
vscodein the container:/usr/local/share/docker-init.sh, the entrypoint of docker-in-docker. That file does not exist. The label of the published image names/usr/local/share/podman-init.sh./var/lib/docker. The two volumes of podman-in-podman (/var/lib/containers,/var/lib/containers-rootless) are not mounted.GIT_CONFIG_COUNT(in the label since fix(devcontainer): isolate image build metadata from workspace settings #2309) is set, butDOCKER_HOST(added by fix(devcontainer): build the devcontainer image FROM devtools #6472) is not.podman-init.shdid not run./run/podman/podman.sockdoes not exist, and/var/run/docker.sockpoints to nothing.podmanfails:cannot set up namespace using "/usr/bin/newuidmap": exit status 1. The ID map of the container holds 0 to 65536, but/etc/subuidgivesvscode:100000:65536.podman-subid-ranges.shcorrects the ranges at start, but it did not run.Results of the checks of this issue:
grep VERSION_CODENAME /etc/os-releaseforky(pass)docker versionnewuidmap: exit status 1podman --url unix:///var/run/docker.sock versiongit config --get-all credential.https://github.com.helper!gh auth git-credential(pass)printenv DOCKER_HOSTProbable cause: Dev Containers read the label of the old local
:latesttag, and the UID image build used the new image. Next step: pull the image on the host, rebuild again, and run the checks again.dan-petty commentedon Nov 20, 2026
Second rebuild on the host (2026-11-20): the checks pass
Before the second rebuild, the owner pulled
ghcr.io/dan-petty/devops-cli/devcontainer:lateston the host. Now PID 1 runs/usr/local/share/podman-init.sh,/run/podman/podman.sockisroot:docker 0660, and/var/lib/containersand/var/lib/containers-rootlessare mounted. The old volume is not mounted at/var/lib/docker.vscode, agent session)grep VERSION_CODENAME /etc/os-releaseforkydocker versionClient: Podman Engine, 5.8.6podman --url unix:///var/run/docker.sock versionServer: Podman Engine, 5.8.6podman infotrue, store/var/lib/containers-rootless/vscodepodman run --rm quay.io/podman/hellopodman save quay.io/podman/hello | sudo podman loaddevops docker imagesquay.io/podman/hello:latestof the rootful storegit config --get-all credential.https://github.com.helper!gh auth git-credentialprintenv DOCKER_HOSTunix:///var/run/docker.sockdocker runsteps of the Service Image Smoke Test, on the published service imageid -u,gh,git,openspecand the 3 absence checks pass. The steps with--tmpfs /home/devops:uid=1000,gid=1000fail:unknown mount option "uid=1000"(#6468).Open for a person:
printenv DOCKER_HOSTin a VS Code terminal, andpodman volume rmof the orphandind-var-lib-docker-*volumes on the host.dan-petty commentedon Nov 20, 2026
In a VS Code terminal, the owner ran
printenv DOCKER_HOST. It printsunix:///var/run/docker.sock(2026-11-20).Still open: the
docker runsteps with--tmpfs ...:uid=1000,gid=1000(#6468), andpodman volume rmof the orphandind-var-lib-docker-*volumes on the host.dan-petty commentedon Nov 20, 2026
The owner removed the orphan
dind-var-lib-docker-*volumes on the host (2026-11-20). The last open point of this issue is the smoke steps of #6468.devops-cli-service commentedon Nov 20, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 20, 2026
All points of this issue are done (2026-11-20): the checks of the comment of the second rebuild pass, the owner checked
printenv DOCKER_HOSTin a VS Code terminal and removed the orphandind-var-lib-docker-*volumes, and #6509 (#6468) made thedocker runsmoke steps use--tmpfs /home/devops:mode=1777, which Podman accepts. Closing as completed.