diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-16 16:27:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 16:27:34 +0100 |
commit | f031bd23c6f5f790dde383d542c940bfe2dfaadd (patch) | |
tree | 34d460f57b3ecf7491ec92a296ebd68e233e8bf6 /pkg/specgenutil | |
parent | 8430ffc72e74f1271174984674a1c2ee6118779e (diff) | |
parent | 44d1618dd7eeb2560571b14ba5cece69a93dcaff (diff) | |
download | podman-f031bd23c6f5f790dde383d542c940bfe2dfaadd.tar.gz podman-f031bd23c6f5f790dde383d542c940bfe2dfaadd.tar.bz2 podman-f031bd23c6f5f790dde383d542c940bfe2dfaadd.zip |
Merge pull request #12100 from rhatdan/env
Add option --unsetenv to remove default environment variables
Diffstat (limited to 'pkg/specgenutil')
-rw-r--r-- | pkg/specgenutil/specgen.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgenutil/specgen.go b/pkg/specgenutil/specgen.go index 91f5165f2..c110b9e97 100644 --- a/pkg/specgenutil/specgen.go +++ b/pkg/specgenutil/specgen.go @@ -711,6 +711,8 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions s.Umask = c.Umask s.PidFile = c.PidFile s.Volatile = c.Rm + s.UnsetEnv = c.UnsetEnv + s.UnsetEnvAll = c.UnsetEnvAll // Initcontainers s.InitContainerType = c.InitContainerType |