Skip to content

s2e: switched container builds to rootless podman - #121

Merged
vitalych merged 5 commits into
masterfrom
podman
Nov 7, 2026
Merged

vitalych merged 5 commits into
masterfrom
podman

Conversation

@vitalych

@vitalych vitalych commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Switches the S2E build images and CI to rootless Podman.

  • Dockerfile, Dockerfile.tools: fully qualified base images, removed run_as.sh and sudo, fixed the example commands.
  • Deleted scripts/run_as.sh.
  • CI: uses Podman, renamed the workflow to container.yaml, and builds the guest tools with Dockerfile.tools and clang 15, as s2e build does.
  • Vagrant: installs podman uidmap, sets the overlay storage driver on Debian 12, enables lingering so Podman works under su, and forwards the *_BRANCH variables (including the new REPO_BRANCH and GUEST_IMAGES_BRANCH) from the host.
  • Docs: Podman host requirements, the new demo command, and Docker references replaced (separate commit).

Why

The container builds used Docker and required membership in the docker group, which gives root access to the host. Rootless Podman runs containers in a user namespace owned by the calling user, so it needs no group membership and no root daemon. Container root is the calling user, so files written to bind mounts belong to that user without the run_as.sh user switching.

Docker support is removed. Environments built with Docker are not migrated: delete their build folders, stamps and images, or start from a fresh environment.

Related PRs

These PRs land together:

Testing

  • s2e build, s2e image_build, and the demo image (make -f Makefile.container demo, then /demo/run.sh /demo/CADET_00001) work on a rootless Podman host.
  • s2e-env unit tests and pylint pass, including new tests for the Podman host check.
  • Not yet tested: Vagrant provisioning on the four supported boxes.

🤖 Generated with Claude Code

vitalych and others added 4 commits November 7, 2026 19:46
…odman

Docker requires membership in the docker group, which gives root access to
the host. Rootless Podman maps container root to the calling user, so build
outputs belong to that user without any user switching in the container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vitalych
vitalych merged commit 27a97db into master Nov 7, 2026
3 checks passed
@vitalych
vitalych deleted the podman branch November 7, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant