From fdfc558bd9863340bffbdf3f5cbd613ca9277871 Mon Sep 17 00:00:00 2001 From: Timofey Kirillov Date: Tue, 23 May 2023 14:57:03 +0300 Subject: [PATCH] fix(buildah): use native-chroot isolation by default with buildah backend Signed-off-by: Timofey Kirillov --- pkg/buildah/common.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/buildah/common.go b/pkg/buildah/common.go index 656e3d053b..d6ce0773fc 100644 --- a/pkg/buildah/common.go +++ b/pkg/buildah/common.go @@ -253,10 +253,7 @@ func GetFuseOverlayfsOptions() ([]string, error) { } func GetDefaultIsolation() (thirdparty.Isolation, error) { - if util.IsInContainer() { - return thirdparty.IsolationChroot, nil - } - return thirdparty.IsolationOCIRootless, nil + return thirdparty.IsolationChroot, nil } func debug() bool {