Container image for buildah_rootless
2.5K
buildah prepared for rootless image builds inside a pod, e.g. on OpenShift, following the upstream tutorial.
kubectl run buildah --image=ghcr.io/tuxpeople/buildah_rootless:latest
kubectl exec -it buildah -- buildah bud -t example:dev .
The container keeps running (sleep infinity) so you can exec into it.
| Setting | Value | Why |
|---|---|---|
BUILDAH_ISOLATION | chroot | runc does not work rootless |
STORAGE_DRIVER | vfs | fuse-overlayfs needs /dev/fuse |
/etc/subuid, /etc/subgid | build:10000:65536 | subordinate IDs for the build user, group-writable for arbitrary UIDs |
| User | build (UID 1000) |
quay.io/buildah/stable (Fedora), pinned by digestFROM tag (1.43.5, 1.43, 1, latest); Renovate updates the tagpython3 -m http.server just to keep running; it uses sleep infinity nowGoss checks the build user, the subordinate IDs, the buildah binary and that the rootless settings apply to every process. An actual build is not tested: rootless buildah needs user namespaces, which Docker's default seccomp profile (and therefore CI) does not allow.
docker build -t buildah_rootless:test .
GOSS_FILE=goss.yaml dgoss run buildah_rootless:test
Content type
Image
Digest
sha256:5e9d69a15…
Size
238.1 MB
Last updated
1 day ago
docker pull tdeutsch/buildah_rootless