diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-08-14 12:06:49 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-15 11:40:30 +0000 |
commit | 883aea51a3dee4398ec25806afa0bb3c9605696e (patch) | |
tree | f77ffbd21eb50fde555680f9071ee62f5562cffd /cmd | |
parent | e2b96e96f93d1da17b817eaa960b9d809bc61a14 (diff) | |
download | podman-883aea51a3dee4398ec25806afa0bb3c9605696e.tar.gz podman-883aea51a3dee4398ec25806afa0bb3c9605696e.tar.bz2 podman-883aea51a3dee4398ec25806afa0bb3c9605696e.zip |
build, rootless: specify IsolationOCIRootless
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #1269
Approved by: rhatdan
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/build.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/build.go b/cmd/podman/build.go index b8e586811..c33193882 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -7,10 +7,12 @@ import ( "strings" "github.com/pkg/errors" + "github.com/projectatomic/buildah" "github.com/projectatomic/buildah/imagebuildah" buildahcli "github.com/projectatomic/buildah/pkg/cli" "github.com/projectatomic/buildah/pkg/parse" "github.com/projectatomic/libpod/cmd/podman/libpodruntime" + "github.com/projectatomic/libpod/pkg/rootless" "github.com/sirupsen/logrus" "github.com/urfave/cli" ) @@ -229,5 +231,9 @@ func buildCmd(c *cli.Context) error { options.ReportWriter = ioutil.Discard } + if rootless.IsRootless() { + options.Isolation = buildah.IsolationOCIRootless + } + return runtime.Build(getContext(), options, dockerfiles...) } |