Repository navigation
Description
Problem or Motivation
.devcontainer/image/devcontainer.json uses the feature ghcr.io/devcontainers/features/docker-in-docker:2 (2.17.0). The newest major is 4 (4.1.3). Renovate (#4893) will offer it. Both majors change how the daemon starts in the devcontainer:
- 3.0.0 (fix(docker-in-docker): disable containerd erofs snapshotter to fix dockerd startup devcontainers/features#1645): dockerd starts its own containerd, with the erofs snapshotter off.
- 4.0.0 ([docker-in-docker] - Move the iptables switching logic in the docker-init script and isolated tests for specific cases devcontainers/features#1666): the iptables backend is selected at runtime (option
iptablesSwitchAtRuntime, defaulttrueat 4.1.3), and the docker compose default islatest.
The devcontainer smoke test does not start dockerd. The owner's host is rootless Podman on WSL2, so a check on that host must show that dockerd still starts.
Research of 2026-11-12 (research-ci, record devcontainer-feature:docker-in-docker; devcontainer outdated with CLI 0.89.0).
Proposed Solution & Architectural Design
- Set
docker-in-docker:4in.devcontainer/image/devcontainer.json, then rundevcontainer upgrade --workspace-folder . --config .devcontainer/image/devcontainer.jsonto write the lock. - Build the devcontainer image, start it on the rootless Podman WSL2 host, start dockerd, and run a
docker buildand adocker runin it. - If dockerd does not start, record the error and set the options that the 4.x README gives (for example
iptablesSwitchAtRuntime).
Done when the image with feature 4 builds and dockerd runs a build on the owner's host.
Target Subsystem
SDLC, Git & PR Governance
Existing Tool Considered
The Dev Containers CLI (devcontainer upgrade) writes the lock. No new code.
Source: #4893
Alternatives check of 2026-11-15: in-use.
The repository already uses this tool.
Tool: devcontainers/features (https://github.com/devcontainers/features), MIT, last activity 2026-11-11, maintained.
Activity
dan-petty commentedon Nov 12, 2026
This is a planned version upgrade with no active failure, so it is low urgency.Both manage devcontainer features in the same config file, but #4368 converts tool installs to features while the candidate bumps one feature's major version.build(deps): take every safe version update before Renovate (#5102)
devops-cli-service commentedon Nov 15, 2026
Alternatives check: in-use
Reason: The searches and repository facts show that the
docker-in-dockerfeature the config already uses is published from the maintained devcontainers/features repository, whose major 4 is the upgrade the issue asks for, and the Dev Containers CLI supplies thedevcontainer upgradelock write. Together they cover the change with no new code; only the host check that dockerd starts on rootless Podman WSL2 remains project work.The repository already uses this tool.
Tool: devcontainers/features (https://github.com/devcontainers/features)
Covers:
docker-in-dockerdevcontainer feature that the config already uses is published from this maintained repository, so major 4 is available to bump to without new codeiptablesSwitchAtRuntime, compose default) that the issue's step 3 would apply if dockerd does not startdevcontainer upgradeto write the lock file after the bumpLacks:
devcontainer upgradeafter the feature version changesTools considered:
Searches run:
Sources:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 19, 2026
Owner decision of 2026-11-19: Podman replaces Docker in the devcontainer. #6414 removes the docker-in-docker Feature and adds
ghcr.io/dan-petty/devcontainer-features/podman-in-podman:1(dan-petty/devcontainer-features#5). When #6414 merges, close this item as not planned.dan-petty commentedon Nov 20, 2026
Closed as not planned. #6414 (PR #6472, merged 2026-11-20) removed the docker-in-docker Feature from the devcontainer: podman-in-podman with
dockerCompatreplaces it, by the owner rules of 2026-11-19 (Podman replaces Docker, no Docker CLI in the devops-cli container).