diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 6fe68ebab..071c04ca5 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -374,7 +374,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim } usernsMode := container.UsernsMode(c.String("userns")) - if !usernsMode.Valid() { + if !cc.IsNS(string(usernsMode)) && !usernsMode.Valid() { return nil, errors.Errorf("--userns %q is not valid", c.String("userns")) } |