Skip to content

Commit

Permalink
Merge pull request containers#6712 from mheon/readd_userns_envvar
Browse files Browse the repository at this point in the history
Re-add PODMAN_USERNS environment variable
  • Loading branch information
openshift-merge-robot authored Jun 23, 2020
2 parents 3c51ff9 + f329e2a commit fc2c2ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/podman/common/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package common

import (
"fmt"
"os"

"github.com/containers/common/pkg/auth"
"github.com/containers/libpod/cmd/podman/registry"
Expand Down Expand Up @@ -464,7 +465,7 @@ func GetCreateFlags(cf *ContainerCLIOpts) *pflag.FlagSet {
"Username or UID (format: <name|uid>[:<group|gid>])",
)
createFlags.String(
"userns", "",
"userns", os.Getenv("PODMAN_USERNS"),
"User namespace to use",
)
createFlags.String(
Expand Down

0 comments on commit fc2c2ad

Please sign in to comment.