From 8ae4e625d011190c7ccf0dee5ef7f9aa0ef28cb5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 7 Feb 2024 12:59:11 -0600 Subject: [PATCH] Set BUILDAH_ISOLATION env var By default, `buildah` creates its working containers using kernel namespaces. When it is running in a container itself, this is not possible, so it must use a plain `chroot`. Setting this environment variable will ensure that it does this by default, without having to explicitly pass `--isolation chroot` on the command line. --- Containerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containerfile b/Containerfile index 5f1991b..e6d9e8a 100644 --- a/Containerfile +++ b/Containerfile @@ -33,3 +33,5 @@ RUN --mount=type=cache,target=/var/cache \ && : COPY --from=build /usr/local/bin/genimage /usr/local/bin/genimage + +ENV BUILDAH_ISOLATION=chroot