summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-05-24 13:39:13 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-05-24 17:34:13 +0200
commit5eb321ac372f5c29f65769a4554ff224186ffb21 (patch)
tree261df1767d9763dad6da6ffb41488ef98b41670a /cmd
parentf09370c68b8b514aca80bfaa34f98fbc5b97d318 (diff)
downloadpodman-5eb321ac372f5c29f65769a4554ff224186ffb21.tar.gz
podman-5eb321ac372f5c29f65769a4554ff224186ffb21.tar.bz2
podman-5eb321ac372f5c29f65769a4554ff224186ffb21.zip
podman: honor env variable PODMAN_USERNS
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 5e26d9bfd..054b01247 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -517,7 +517,7 @@ func getCreateFlags(c *cliconfig.PodmanCommand) {
"Username or UID (format: <name|uid>[:<group|gid>])",
)
createFlags.String(
- "userns", "",
+ "userns", os.Getenv("PODMAN_USERNS"),
"User namespace to use",
)
createFlags.String(