diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-07-11 09:25:38 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-07-11 13:25:47 -0400 |
commit | df75fc62c8316bce058bbdda29f66af9dcc5573a (patch) | |
tree | 88d3cddc663a057c14b9f9b65707cb3d2f6c1def /cmd/podman/common.go | |
parent | 144567b42dba2c8c426538a4b5fe7d718b43284a (diff) | |
download | podman-df75fc62c8316bce058bbdda29f66af9dcc5573a.tar.gz podman-df75fc62c8316bce058bbdda29f66af9dcc5573a.tar.bz2 podman-df75fc62c8316bce058bbdda29f66af9dcc5573a.zip |
Add support for -env-host
This flag passes the host environment into the container. The basic idea is to
leak all environment variables from the host into the container.
Environment variables from the image, and passed in via --env and --env-file
will override the host environment.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r-- | cmd/podman/common.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go index 50f3d9a7b..96a1c2244 100644 --- a/cmd/podman/common.go +++ b/cmd/podman/common.go @@ -221,6 +221,9 @@ func getCreateFlags(c *cliconfig.PodmanCommand) { "env", "e", []string{}, "Set environment variables in container", ) + createFlags.Bool( + "env-host", false, "Use all current host environment variables in container", + ) createFlags.StringSlice( "env-file", []string{}, "Read in a file of environment variables", |