summaryrefslogtreecommitdiff
path: root/cmd/podman/common/create.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-01-08 09:42:43 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-01-11 17:35:39 -0500
commit1c1e670d40826bed50ea43c197d1944018263738 (patch)
tree5ae4480fc7390b044ec08e3359c41636cf40bce6 /cmd/podman/common/create.go
parent63d8f535ec93b5e83257e39b9d656747c4bedfcc (diff)
downloadpodman-1c1e670d40826bed50ea43c197d1944018263738.tar.gz
podman-1c1e670d40826bed50ea43c197d1944018263738.tar.bz2
podman-1c1e670d40826bed50ea43c197d1944018263738.zip
Use HTTPProxy settings from containers.conf
This PR takes the settings from containers.conf and uses them. This works on the podman local but does not fix the issue for podman remote or for APIv2. We need a way to specify optionalbooleans when creating containers. Fixes: https://github.com/containers/podman/issues/8843 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r--cmd/podman/common/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index bbd4f6bae..24703eda2 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -336,7 +336,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) {
createFlags.BoolVar(
&cf.HTTPProxy,
- "http-proxy", true,
+ "http-proxy", containerConfig.Containers.HTTPProxy,
"Set proxy environment variables in the container based on the host proxy vars",
)