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.
main
Dustin 2024-02-07 12:59:11 -06:00
parent 6cd88a70ef
commit 8ae4e625d0
1 changed files with 2 additions and 0 deletions

View File

@ -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