summaryrefslogtreecommitdiff
path: root/cmd/podman/create.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r--cmd/podman/create.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go
index 07e75ad3a..39f6076b9 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -61,6 +61,10 @@ func createCmd(c *cli.Context) error {
return err
}
+ if os.Geteuid() != 0 {
+ rootless.SetSkipStorageSetup(true)
+ }
+
runtime, err := libpodruntime.GetContainerRuntime(c)
if err != nil {
return errors.Wrapf(err, "error creating libpod runtime")