Skip to content

feat: add the podman-in-podman Feature 1.0.0 - #9

Merged
dan-petty merged 9 commits into
mainfrom
feat/5-podman-in-podman
Nov 19, 2026
Merged

dan-petty merged 9 commits into
mainfrom
feat/5-podman-in-podman

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Add the podman-in-podman Feature 1.0.0. It runs a Podman engine in the dev container: the remote user runs rootless Podman, and sudo runs rootful Podman. It works under a Docker outer engine and under rootless Podman with --userns=keep-id, so the devops-cli dev container can stop using docker-in-docker and the /etc/os-release rewrite. Podman replaces Docker: the Feature installs no Docker CLI and no Docker engine package, and a docker command runs Podman.

Feature (src/podman-in-podman):

  • install.sh installs Podman and its tools from the distribution archive with no version pins, and buildah, skopeo and podman-compose per option. The package list names aardvark-dns and ca-certificates (--no-install-recommends drops them), iptables (netavark 1.4 on ubuntu:noble runs iptables) and slirp4netns (Podman 4.9 on ubuntu:noble starts the rootless network namespace of a user network with it, and a later install does not repair a failed first run).
  • scripts/podman-common.sh holds the install steps that podman-outside-podman (feat(podman-outside-podman): add the podman-outside-podman Feature 1.0.0 #6) will keep as a byte-identical copy: the root and apt-get checks, the remote user rule of devcontainers/features, the exclusion of podman-outside-podman, the dockerCompat skip, the podman-docker install, the group docker, and the podman-compose install with its compose file. The file defines only functions.
  • compose is podman-compose (default) or none. /etc/containers/containers.conf.d/50-podman-in-podman-compose.conf makes podman-compose the only compose provider, so podman compose, docker compose and podman-compose all run podman-compose with no API service.
  • dockerCompat installs podman-docker. docker runs rootless Podman for the remote user and rootful Podman with sudo. The entrypoint starts a rootful podman system service --time=0 unix:///run/podman/podman.sock, sets the socket to root:docker 0660 and links /var/run/docker.sock to it, as dockerd of docker-in-docker does. The install makes the system group docker and adds the remote user. When /usr/local/share/docker-init.sh exists, or a docker command on the PATH is not from podman-docker, the install skips dockerCompat with one (!) line.
  • The entrypoint podman-init.sh makes / shared, nests cgroup v2 before any podman command, makes /run/user/<uid>, gives the rootless storage to the user, and fits the subordinate IDs to the user namespace (podman-subid-ranges.sh). The API service runs only when the PID file names a live process whose /proc/<pid>/cmdline is podman system service. Before a start, the entrypoint removes the old socket and PID file, then waits for the new socket. All runtime files (ready, PID file, service log) are in /run/podman-in-podman/. At the end, the entrypoint writes the start time of PID 1 (field 22 of /proc/1/stat) to ready. This value is new at each start of the container. A second run changes nothing.
  • postStartCommand /usr/local/share/podman-check.sh runs as the remote user. It waits up to 60 seconds until ready holds the start time of the current PID 1, so it does not accept the ready file of an earlier start (under Docker, /run is not a tmpfs). It runs podman info, and with dockerCompat also podman --url unix:///var/run/docker.sock info. Only stdout of podman goes into the start line. On failure, it prints (!) podman-in-podman: with the last stderr line and the log path, and exits 1.
  • Rootless storage is on the volume /var/lib/containers-rootless/<user>. installsAfter is common-utils, docker-in-docker and docker-outside-of-docker. No containerEnv.
  • NOTES.md has the sections Use, Security, Start of the container, Docker compatibility, Storage, Limits and OS support. Docker compatibility names the two stores, podman save <image> | sudo podman load, and the DOCKER_HOST of the profile.d files of podman-docker. Limits names the AppArmor pasta profile of Ubuntu 26.04 hosts and the aardvark-dns inotify watch on debian:sid.

Changes from the first issue text, with the evidence:

  • rootless_storage_path goes in /etc/containers/storage.conf, made from /usr/share/containers/storage.conf. containers/storage 1.57 (trixie) and 1.51 (noble) read no storage.rootless.conf.d/ directory.
  • install.sh makes /var/lib/cni. In its rootless network namespace, Podman 4.9 mounts a private directory on /var/lib/cni, or on /var/lib when /var/lib/cni is absent, and the mount on /var/lib hid the rootless storage on noble.
  • podman-subid-ranges.sh keeps each extent of the ID map separate. The kernel refuses a subordinate range across two extents. On noble, vscode gets uid 1001, and the ranges are 1:999, 1000:1 and 1002:64534.
  • The containers.conf drop-in sets network_backend = "netavark". The podman package of ubuntu:noble has /etc/cni/net.d/87-podman-bridge.conflist, and the Feature installs no CNI plugins. With no backend set, Podman 4.9 reads that file on a new store and puts a warning on stderr, and it selects CNI on a store that has images but no defaultNetworkBackend file. Then podman run fails with failed to find plugin "bridge".
  • The rootless test checks pasta with podman inspect, because podman info of Podman 4.9 has no RootlessNetworkCmd.
  • Owner rules of 2026-11-19 removed compose=docker-compose, the Docker Compose packages and the rootless API service. On the ubuntu-26.04 runner, docker compose down through the rootless service failed with rootless netns: kill network process: permission denied: the pasta AppArmor profile of the host refuses the signal of podman (Debian bug 1100135). The rootful service uses no pasta. CI changes nothing on the runner for AppArmor.
  • The podman-host job passes without kernel.apparmor_restrict_unprivileged_userns=0, so this PR does not set the sysctl.
  • The refined plan added a separate podman-in-podman job and skipped the shared steps for it. This PR keeps the shared test, test-scenarios and podman-host jobs of chore: reset the repository to the Dev Container Features format #3 (a new Feature needs no workflow edit) and gives them the three-image matrix, so the default test and all 9 scenarios run on the three images for each Feature, with no duplicate run.

Tests: the default test and 9 scenarios (rootless_vscode_keepid, rootful_limits, build, compose_podman, docker_compat, minimal, with_docker_in_docker, subid_ranges, idempotent) on debian:sid, debian:trixie and ubuntu:noble, linux/amd64 only. Each test starts with check "podman-check" /usr/local/share/podman-check.sh. Name resolution is checked with the exit status of <compose> exec -T b ping -c1 -W5 a, and compose up and down are checked by the state of the containers. idempotent also kills the API service with SIGKILL, runs the entrypoint again, and checks the new root:docker 660 socket as vscode. Then it writes a ready file of an earlier start and checks that podman-check.sh waits until the entrypoint runs, and then passes. The compose services use init: true, so down does not wait 10 seconds for each sleep container. The test job installs the Feature next to /usr/local/share/podman-outside-podman and expects the stop with its message. The scenario job finds the dockerCompat is skipped. line in the build log of with_docker_in_docker.

Workflow points from the review of PR #4:

  • test-scenarios skips the duplicate test, which ran on ubuntu:focal.
  • test-all tests each Feature alone, then all Features together.
  • release.yaml runs one publish at a time. The permissions have comments (zizmor pedantic).
  • lint.yaml compares versions with semver (new dev dependency), so 1.1.0 is higher than 1.1.0-rc.1.
  • README.md: 10 of the 12 checked upstream Features install.

Closes #5

The Feature runs a Podman engine in the dev container: rootless Podman for
the remote user, rootful Podman through sudo. install.sh installs Podman and
its tools from the distribution archive with no version pins. The entrypoint
nests cgroup v2, makes the runtime directory, fits the subordinate IDs to the
user namespace and starts the API socket for dockerCompat and docker-compose.

The tests are the default test and nine scenarios. rootless_vscode_keepid
also runs in the podman-host job under rootless Podman with keep-id.
- test-pr.yaml: the test, test-scenarios and podman-host jobs run on
  debian:sid, debian:trixie and ubuntu:noble. test-scenarios skips the
  duplicate test, which ran on ubuntu:focal. A new push stops the tests of
  the previous push.
- test-all.yaml: test each Feature alone on debian:sid, then all Features
  together.
- release.yaml: one publish run at a time. The permissions of release.yaml,
  test-pr.yaml and lint.yaml have comments.
- lint.yaml: semver compares the versions, so 1.1.0 is higher than
  1.1.0-rc.1.
- README.md: 10 of the 12 checked upstream Features install.
@dan-petty dan-petty added the type/feature New user-facing functionality or capability addition label Nov 19, 2026
- Set rootless_storage_path in /etc/containers/storage.conf, made from
  the file of the distribution. containers/storage 1.57 (trixie) and
  1.51 (noble) read no storage.rootless.conf.d drop-in.
- Make /var/lib/cni. Podman 4 (noble) otherwise mounts its private
  directory on /var/lib in the rootless network namespace, which hides
  the rootless storage, so user networks are not found.
- Install iptables: netavark 1.4 (noble) runs iptables, not nft.
- Install docker-compose-v2 where the archive has it. The docker-compose
  package of Ubuntu is Compose version 1, which imports distutils.
- podman-subid-ranges.sh: keep each extent of the ID map separate. The
  kernel refuses a subordinate range across two extents, for example
  1:1000 with vscode at uid 1001 under keep-id.
- podman-init.sh: give the rootless storage to the user before
  'podman system migrate', which writes to it.
- Tests: check the pasta network mode with podman inspect (Podman 4.9
  has no RootlessNetworkCmd in podman info), add the uid 1001 and
  cross-extent cases of the subid ranges, drop the config grep.
The Dev Containers CLI runs the Feature entrypoints after the container
prints "Container started", and starts the tests then. The tests could
read the state before podman-init.sh ended: a stale docker.sock link,
no API socket, no pid file. podman-init.sh now writes
/run/podman-in-podman/ready at its end, and each test that needs the
entrypoint waits for that file first.
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof for head 201c441 (commits 3ae766e and 201c441 on top of f97341f).

CI, run 44557802961 (test-pr.yaml) on ubuntu-26.04 runners

Job debian:sid debian:trixie ubuntu:noble
test (default test) pass pass pass
podman-host (rootless_vscode_keepid under rootless Podman 5.7.0, keep-id) pass pass pass
test-scenarios (9 scenarios) 8 of 9 pass 8 of 9 pass 9 of 9 pass

lint (run 44557802936) and validate (run 44557802947) pass.

The one failed check on sid and trixie is compose down in compose_docker:

Error response from daemon: removing container ... network: 1 error occurred:
   * rootless netns: kill network process: permission denied

This is the AppArmor conflict of the runner host (Ubuntu 26.04: the pasta profile refuses SIGTERM from the podman profile; Debian bug 1100135, Ubuntu bug 2154379). The same scenario passes in the local runs below, where the kernel has no AppArmor. This PR does not change the runner; see the open point in the PR body.

Causes of the failures on f97341f (run 44545587490) and their fixes

Failure Cause Fix
noble: Error: netavark: No such file or directory (os error 2) netavark 1.4 runs iptables, which was not installed add iptables
trixie, noble: graph root on the volume containers/storage 1.57 and 1.51 read no storage.rootless.conf.d rootless_storage_path in /etc/containers/storage.conf
noble: No module named 'distutils' Ubuntu docker-compose is Compose version 1 install docker-compose-v2 where the archive has it
noble (keep-id): newuidmap: write to uid_map failed: Operation not permitted range 1:1000 crosses two extents of the uid map (vscode is uid 1001) keep each extent separate
noble: unable to find network with name or ID ...: network not found Podman 4.9 mounts a private directory on /var/lib in the rootless netns when /var/lib/cni is absent make /var/lib/cni
sid podman-host: podman system migrate failed with permission denied the storage directory had the old uid of the user give it to the user before the migrate
sid, noble (run 44555068238): stale docker.sock link, no pid file the tests start before the entrypoint ends entrypoint writes /run/podman-in-podman/ready; tests wait for it

Local runs in the owner's devcontainer (Docker engine inside the keep-id user namespace)

$ devcontainer features test -f podman-in-podman -i debian:sid .      # tree of 201c441
Passed: 'podman-in-podman' 'rootless_vscode_keepid' 'rootful_limits' 'build'
        'compose_podman' 'compose_docker' 'minimal' 'with_docker_in_docker'
        'subid_ranges' 'idempotent'
exit 0

$ devcontainer features test --skip-scenarios --skip-duplicated -f podman-in-podman -i ubuntu:noble .
Passed: 'podman-in-podman' (13 checks)
exit 0

# scenarios.json with ubuntu:noble in place of debian:sid (without with_docker_in_docker)
$ devcontainer features test -f podman-in-podman --skip-autogenerated --skip-duplicated .
Passed: 'rootless_vscode_keepid' 'rootful_limits' 'build' 'compose_podman'
        'compose_docker' 'minimal' 'subid_ranges' 'idempotent'
exit 0

# scenarios.json with debian:trixie: rootless_vscode_keepid, compose_docker, compose_podman
Passed: all 3, exit 0

The local noble and trixie scenario runs used the tree of 3ae766e, and the local noble default test an earlier state of that commit. 201c441 only adds the ready file. CI covers each image on 201c441.

Red step of the new subid cases (podman-subid-ranges.sh before the fix):

$ podman-subid-ranges.sh vscode 1001 /dev/null subid/keepid_map
vscode:1:1000          # crosses the extents 0-999 and 1000
vscode:1002:64534

After the fix: vscode:1:999, vscode:1000:1, vscode:1002:64534. shellcheck passes on every script.

…ket and no Docker CLI

Remove compose=docker-compose and its packages. dockerCompat installs
podman-docker, starts a rootful Podman API service on
/run/podman/podman.sock (root:docker 0660) and links /var/run/docker.sock
to it. podman-compose is the only compose provider. Move the shared
install steps to scripts/podman-common.sh, add the podman-check.sh
postStartCommand, the exclusion of podman-outside-podman, slirp4netns,
and the docker_compat scenario and restart checks.
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof for head 3debd5d (the change to the contract of 2026-11-19: no Docker CLI, rootful API socket, podman-compose as the only compose provider).

CI on 3debd5d: all 12 checks pass.

  • PR - Test Updated Features, run 44601451872: test, test-scenarios and podman-host pass on debian:sid, debian:trixie and ubuntu:noble.
  • test-scenarios (debian:sid): all 9 scenarios pass. b finds a by name passes in compose_podman and docker_compat, so aardvark-dns name resolution works on debian:sid on the runner.
  • The new step of test-scenarios finds the skip line in the build log: (!) podman-in-podman: /usr/local/share/docker-init.sh of another Feature is present. dockerCompat is skipped.
  • The new negative step of test (debian:sid): install.sh next to /usr/local/share/podman-outside-podman exits non-zero and prints (!) podman-in-podman and podman-outside-podman cannot be in one container.
  • Lint, run 44601452009: shellcheck (with the SCRIPTDIR source directive for scripts/podman-common.sh), the README check and the version check pass.
  • Validate devcontainer-feature.json files, run 44601451769: pass.
  • The runner changes nothing for AppArmor. podman-host passes without the sysctl.

Local runs in the devcontainer (Docker engine in the keep-id user namespace), Dev Containers CLI 0.90.0 from package-lock.json:

# scenarios.json with debian:trixie in place of debian:sid
devcontainer features test -f podman-in-podman --skip-autogenerated --skip-duplicated .
  -> 9 of 9 scenarios pass, exit 0
# scenarios.json with ubuntu:noble in place of debian:sid
devcontainer features test -f podman-in-podman --skip-autogenerated --skip-duplicated .
  -> 9 of 9 scenarios pass, exit 0
devcontainer features test --skip-scenarios -f podman-in-podman -i debian:sid .
  -> default test passes (17 checks), exit 0

Selected output of the local runs:

  • postStartCommand in docker_compat (trixie): podman-in-podman: rootless Podman 5.4.2 for vscode. /var/run/docker.sock: rootful Podman 5.4.2.
  • docker_compat: docker is from podman-docker; no docker-cli, docker.io or docker-ce-cli; docker version names Podman Engine; /var/run/docker.sock -> /run/podman/podman.sock, root:docker 660; rootless is false through the socket; docker compose up, docker compose exec -T b ping -c1 -W5 a and docker compose down work; the docker build image is only in the rootless store.
  • idempotent: two more runs of the entrypoint change nothing. After SIGKILL of the API service, the old socket stays; the next run starts a new service with a new PID and a root:docker 660 socket that vscode reaches.

Other commands:

git ls-files -z '*.sh' | xargs -0r shellcheck   -> no findings
npm run docs                                     -> README.md regenerated and committed
actionlint .github/workflows/test-pr.yaml        -> no findings
zizmor --pedantic .github/workflows/test-pr.yaml -> 4 informational anonymous-definition findings (jobs with no name, as on main)

Not proven here: name resolution on debian:sid in the local run, because the local host user has almost no free inotify watches (see NOTES.md, Limits). CI proves it on the runner.

… set netavark

On ubuntu:noble, the start line of podman-check.sh had a Podman warning in
place of the version, over two lines. The check put the stderr of podman
into the version text.

- podman-check.sh writes the stderr of podman to a temporary file. Only
  stdout goes into the start line. The last stderr line goes into the
  failure line.
- The containers.conf drop-in sets network_backend = "netavark". The
  podman package of ubuntu:noble has
  /etc/cni/net.d/87-podman-bridge.conflist, and the Feature installs no
  CNI plugins. With no backend set, Podman 4.9 reads that file on a new
  store and warns, and it selects CNI on a store that has images but no
  defaultNetworkBackend file. Then 'podman run' fails.
- test.sh checks one start line on a store with no backend file, and
  netavark on a store with images and no backend file.
- NOTES.md and README.md tell about the backend.
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof for head 4e2ef41 (fix of the review point: a Podman warning in the start line of podman-check.sh on ubuntu:noble).

The cause, confirmed:

  • CI job 135833753963 (test, ubuntu:noble, head 3debd5d), postStartCommand output: podman-in-podman: rootful Podman time="..." level=warning msg="Error validating CNI config file /etc/cni/net.d/87-podman-bridge.conflist: [failed to find plugin \"bridge\" ...]", then 4.9.3 for root. on the next line. The check put 2>&1 into the version text.
  • The noble image has /etc/cni/net.d/87-podman-bridge.conflist (podman 4.9.3+ds1-1ubuntu0.2) and no CNI plugins. With no network_backend, Podman 4.9 selects CNI on a store with images and no defaultNetworkBackend file, and podman run then fails:
# built noble image of 3debd5d, fresh store
podman pull quay.io/podman/hello; rm /var/lib/containers/storage/defaultNetworkBackend
podman info --format '{{.Host.NetworkBackend}}'   -> cni
podman run --rm quay.io/podman/hello              -> Error: plugin type="bridge" failed (add): failed to find plugin "bridge" in path [...]

The fix:

  • podman-check.sh writes the stderr of podman to a mktemp file (removed by an EXIT trap). Only stdout goes into the start line. The failure line shows the last stderr line.
  • 50-podman-in-podman.conf sets network_backend = "netavark" in [network]. Podman then does no backend detection and does not read the CNI file.
  • test.sh has two new checks: one start line on a store with no backend file (stdout is one line ^podman-in-podman: rootful Podman [^[:space:]]+ for root\.$, stderr is empty) and netavark on a store with images and no backend file.

Test first (local, Dev Containers CLI 0.90.0):

# test.sh changed, Feature of 3debd5d
devcontainer features test --skip-scenarios -f podman-in-podman -i ubuntu:noble .
  -> 'netavark on a store with images and no backend file' fails, exit 1
# with the fix
devcontainer features test --skip-scenarios -f podman-in-podman -i ubuntu:noble .   -> 19 checks pass, exit 0
devcontainer features test --skip-scenarios -f podman-in-podman -i debian:trixie .  -> 19 checks pass, exit 0
devcontainer features test --skip-scenarios -f podman-in-podman -i debian:sid .     -> 19 checks pass, exit 0

Start lines of these runs: podman-in-podman: rootful Podman 4.9.3 for root. (noble), ... 5.4.2 ... (trixie), ... 5.8.6 ... (sid), each on one line, no warning.

podman-check.sh with a fake podman in an ubuntu:noble container:

podman writes a warning to stderr and 4.9.3 to stdout
  -> stdout: podman-in-podman: rootful Podman 4.9.3 for root.   stderr: 0 bytes   exit 0
podman writes a warning and "Error: no socket" to stderr, exit 125
  -> (!) podman-in-podman: 'podman info' failed: Error: no socket. See the output of /usr/local/share/podman-init.sh and /run/podman-in-podman/podman-service.log.   exit 1
  -> no temporary file is left in /tmp

Local note: the warning itself did not occur in the local Docker engine (the CNI file loads there with no validation warning), so the local red step is the netavark check. CI job 135833753963 shows the warning on the runner.

Other commands:

git ls-files -z '*.sh' | xargs -0r shellcheck   -> no findings
npm run docs                                     -> README.md is the same as the edited file

CI on 4e2ef41: all 12 checks pass (PR - Test Updated Features run 44606406929, Lint run 44606406975, Validate run 44606406984).

  • test (podman-in-podman, ubuntu:noble), job 135851262274: the 3 start lines are podman-in-podman: rootful Podman 4.9.3 for root., with no warning. The two new checks pass.
  • test-scenarios (podman-in-podman, ubuntu:noble), job 135851262290: 19 start lines, each on one line with no warning, for example podman-in-podman: rootless Podman 4.9.3 for vscode. /var/run/docker.sock: rootful Podman 4.9.3.
  • test and test-scenarios on debian:sid and debian:trixie, and podman-host on the three images, pass.

@dan-petty

Copy link
Copy Markdown
Owner Author

Proof for head 4e2ef41, continuation: no new commit.

Review of the head against each "Change" line of the issue section "Shared implementation with podman-outside-podman": commits 3debd5d and 4e2ef41 cover all of them (options, podman-docker with the skip rule, compose file, slirp4netns, rootful service with root:docker 0660, docker group, runtime files in /run/podman-in-podman/, cmdline check of the PID, postStartCommand, exclusion, installsAfter, scripts/podman-common.sh, NOTES.md layout, tests).

An earlier stopped run left one uncommitted edit: a check "vscode in the group docker" in compose_podman.sh. I removed it. compose_podman uses the defaults (dockerCompat=false). The issue puts the docker group under "Socket and group", which applies with active dockerCompat, and install.sh adds the group only then. With no API socket, the group gives access to nothing.

Name resolution on debian:sid, measured locally on a host with free inotify watches (Dev Containers CLI from package-lock.json):

devcontainer features test -f podman-in-podman --skip-autogenerated --skip-duplicated --filter compose_podman .
  -> podman-in-podman: rootless Podman 5.8.6 for vscode.
  -> 8 checks pass, including 'b finds a by name' (podman compose exec -T b ping -c1 -W5 a)
  -> exit 0
git ls-files -z '*.sh' | xargs -0r shellcheck   -> no findings

CI of 4e2ef41: all 12 checks pass. In test-scenarios (podman-in-podman, debian:sid), job 135851262168, 'b finds a by name' passes in compose_podman and in docker_compat, and the build log of with_docker_in_docker has (!) podman-in-podman: /usr/local/share/docker-init.sh of another Feature is present. dockerCompat is skipped.

Fixes of the review of PR #9.

- Under Docker, /run is not a tmpfs, so the ready file of the last start
  stays after a stop and a start. podman-check.sh accepted it before the
  entrypoint of this start ran. podman-init.sh now writes the start time
  of PID 1 (field 22 of /proc/1/stat) to the ready file. podman-check.sh
  waits until the file holds the start time of the current PID 1.
- In dash, the input redirection of the PID check came before
  2> /dev/null, so a missing /proc/<pid>/cmdline printed an error line
  at the start after a restart. The stderr redirection now comes first.
- idempotent.sh writes a ready file of an earlier start and checks that
  podman-check.sh waits until the entrypoint runs, and then passes.
- The compose services of compose_podman.sh and docker_compat.sh use
  init: true. As PID 1, sleep ignores SIGTERM, so each down waited
  10 seconds for each container.
- NOTES.md and README.md tell about the start time in the ready file.
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof for head 3ee9cce (fixes of the 4 minor points of the independent review of 4e2ef41).

1. Ready file of an earlier start. podman-init.sh writes the start time of PID 1 (field 22 of /proc/1/stat) to /run/podman-in-podman/ready. podman-check.sh waits until the file holds the start time of the current PID 1. The new checks at the end of idempotent.sh write a ready file of an earlier start, start podman-check.sh in the background, check after 3 seconds that it still waits, run the entrypoint, and check that it then exits 0 with its start line.

# old scripts (4e2ef41) with the new idempotent.sh, debian:sid
devcontainer features test -f podman-in-podman --skip-autogenerated --skip-duplicated --filter idempotent <copy>
  -> 'ready file holds the start time of PID 1' check failed   (old ready file is empty)
# same, without that check
  -> 'podman-check waits for the entrypoint' check failed      (old check accepts the stale file at once)
# new scripts (3ee9cce)
  -> 22 of 22 checks pass, idempotent passes

2. dash error line. The PID check now puts 2> /dev/null before the input redirection.

dash -c 'f() { x=$(tr "\0" " " < "/proc/999999/cmdline" 2> /dev/null) || return 1; }; f'   -> "dash: 1: cannot open /proc/999999/cmdline: No such file", rc=1
dash -c 'f() { x=$(tr "\0" " " 2> /dev/null < "/proc/999999/cmdline") || return 1; }; f'   -> no output, rc=1

In the idempotent scenario, the run after SIGKILL printed podman-init.sh: 124: cannot open /proc/131/cmdline: No such file with 4e2ef41. With 3ee9cce, no local or CI log has cannot open.

3. Compose stop time. The services of compose_podman.sh and docker_compat.sh use init: true. podman-compose passes --init on all three images (source of the packages: 1.6.0 on debian:sid, 1.3.0 on debian:trixie, 1.0.6 on ubuntu:noble; the noble log shows podman run ... --init). The Feature installs catatonit.

compose_podman, debian:sid, cached image, one run at a time
  4e2ef41: 34 s    3ee9cce: 12 s

CI test-scenarios job time (9 scenarios): sid 315 s -> 289 s, trixie 284 s -> 243 s, noble 285 s -> 244 s.

4. CI jobs. No workflow change. The shared test, test-scenarios and podman-host jobs run the default test and all 9 scenarios on the three images for each Feature, with no duplicate run. This is what the separate job of the refined plan was to give, and a new Feature needs no workflow edit (#3). The PR body now gives this reason.

Local runs (Dev Containers CLI 0.90.0 from package-lock.json, scenarios.json with the base image in place of debian:sid):

Scenario debian:sid debian:trixie ubuntu:noble
idempotent 22 of 22 22 of 22 22 of 22
compose_podman 8 of 8 8 of 8 8 of 8
docker_compat 14 of 14 14 of 14 14 of 14

git ls-files -z '*.sh' | xargs -0r shellcheck: no findings. actionlint: exit 0. npm run docs wrote the README from NOTES.md.

CI of 3ee9cce: 12 of 12 check runs pass (run 44615553566 for test-pr.yaml). In test-scenarios on debian:sid, debian:trixie and ubuntu:noble, all 9 scenarios pass, and podman-check waits for the entrypoint and podman-check passes after the entrypoint pass.

The PR stays a draft.

@dan-petty
dan-petty marked this pull request as ready for review November 19, 2026 21:25
@dan-petty
dan-petty merged commit 5001174 into main Nov 19, 2026
14 checks passed
@dan-petty
dan-petty deleted the feat/5-podman-in-podman branch November 19, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feature New user-facing functionality or capability addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(podman-in-podman): add the podman-in-podman Feature 1.0.0

1 participant