diff options
Diffstat (limited to 'vendor/github.com/projectatomic/buildah/pkg')
-rw-r--r-- | vendor/github.com/projectatomic/buildah/pkg/parse/parse.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/projectatomic/buildah/pkg/parse/parse.go b/vendor/github.com/projectatomic/buildah/pkg/parse/parse.go index bd333a2cc..2dff18818 100644 --- a/vendor/github.com/projectatomic/buildah/pkg/parse/parse.go +++ b/vendor/github.com/projectatomic/buildah/pkg/parse/parse.go @@ -545,6 +545,8 @@ func defaultIsolation() (buildah.Isolation, error) { if isSet { if strings.HasPrefix(strings.ToLower(isolation), "oci") { return buildah.IsolationOCI, nil + } else if strings.HasPrefix(strings.ToLower(isolation), "rootless") { + return buildah.IsolationOCIRootless, nil } else if strings.HasPrefix(strings.ToLower(isolation), "chroot") { return buildah.IsolationChroot, nil } @@ -558,6 +560,8 @@ func IsolationOption(c *cli.Context) (buildah.Isolation, error) { if c.String("isolation") != "" { if strings.HasPrefix(strings.ToLower(c.String("isolation")), "oci") { return buildah.IsolationOCI, nil + } else if strings.HasPrefix(strings.ToLower(c.String("isolation")), "rootless") { + return buildah.IsolationOCIRootless, nil } else if strings.HasPrefix(strings.ToLower(c.String("isolation")), "chroot") { return buildah.IsolationChroot, nil } else { |