diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-18 09:17:41 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-28 06:06:08 -0400 |
commit | 60fe96118fcbf5beef4f58abd3dbe9dcb6cc49d0 (patch) | |
tree | d7e2c7b6c4b45a07de0b1d2554f99f75182e9f99 /pkg/specgen/specgen.go | |
parent | 061c93f70101026d79cca6e75ac0c565e1fa99ec (diff) | |
download | podman-60fe96118fcbf5beef4f58abd3dbe9dcb6cc49d0.tar.gz podman-60fe96118fcbf5beef4f58abd3dbe9dcb6cc49d0.tar.bz2 podman-60fe96118fcbf5beef4f58abd3dbe9dcb6cc49d0.zip |
Use environment from containers.conf
podman needs to use the environment settings in containers.conf
when setting up the containers.
Also host environment variables should be relative to server side
not the client.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/specgen/specgen.go')
-rw-r--r-- | pkg/specgen/specgen.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/specgen/specgen.go b/pkg/specgen/specgen.go index a52225f87..cca05eddb 100644 --- a/pkg/specgen/specgen.go +++ b/pkg/specgen/specgen.go @@ -43,6 +43,13 @@ type ContainerBasicConfig struct { // image's configuration. // Optional. Command []string `json:"command,omitempty"` + // EnvHost indicates that the host environment should be added to container + // Optional. + EnvHost bool `json:"env_host,omitempty"` + // EnvHTTPProxy indicates that the http host proxy environment variables + // should be added to container + // Optional. + HTTPProxy bool `json:"httpproxy,omitempty"` // Env is a set of environment variables that will be set in the // container. // Optional. |