Run podman in jobs

The job image gets podman, and each job a volume for /var/lib/containers,
so podman inside the job keeps its storage off the container's overlayfs.
Tested by building Job79/devcontainer's two images in a job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-23 19:08:19 +00:00
1 parent 6ebddf18ce
commit 52b4cea73e
3 files changed
+9 -6

No files matched your search

+4 -3
View File
@@ -23,6 +23,7 @@ container:
privileged: true
# docker_host "-" keeps podman's socket out of the jobs.
docker_host: "-"
# options gives each job a /var/tmp volume. On the container's overlayfs,
# mkosi loses the xattrs of the files it copies, such as file capabilities.
options: --volume /var/tmp
# options gives each job volumes for /var/tmp and /var/lib/containers. On
# the container's overlayfs, mkosi loses the xattrs of the files it copies,
# such as file capabilities, and podman can't keep its storage.
options: --volume /var/tmp --volume /var/lib/containers