Skip to content

Commit

Permalink
Use HTTPProxy settings from containers.conf
Browse files Browse the repository at this point in the history
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: containers#8843

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Dec 28, 2020
1 parent 8f75ed9 commit 3855293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/podman/common/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down

0 comments on commit 3855293

Please sign in to comment.