Skip to content

Commit

Permalink
Merge pull request #2854 from giuseppe/rootless-isolation-default
Browse files Browse the repository at this point in the history
pkg, cli: rootless uses correct isolation
  • Loading branch information
rhatdan authored Dec 15, 2020
2 parents 5b867f2 + 6eb5801 commit d69f76a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cli/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/containers/common/pkg/auth"
commonComp "github.com/containers/common/pkg/completion"
"github.com/containers/common/pkg/config"
"github.com/containers/storage/pkg/unshare"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -366,6 +367,9 @@ func DefaultIsolation() string {
if isolation != "" {
return isolation
}
if unshare.IsRootless() {
return "rootless"
}
return buildah.OCI
}

Expand Down

0 comments on commit d69f76a

Please sign in to comment.