mirror of
https://github.com/containers/podman.git
synced 2025-05-28 05:08:18 +08:00
http-proxy: improve docs
Signed-off-by: James Cassell <code@james.cassell.me>
This commit is contained in:
@ -315,7 +315,7 @@ func getCreateFlags(c *cliconfig.PodmanCommand) {
|
||||
)
|
||||
createFlags.Bool(
|
||||
"http-proxy", true,
|
||||
"Set proxy environment variables in container based on the host proxy vars",
|
||||
"Set proxy environment variables in the container based on the host proxy vars",
|
||||
)
|
||||
createFlags.String(
|
||||
"image-volume", cliconfig.DefaultImageVolume,
|
||||
|
@ -250,7 +250,17 @@ By default proxy environment variables are passed into the container if set
|
||||
for the podman process. This can be disabled by setting the `--http-proxy`
|
||||
option to `false`. The environment variables passed in include `http_proxy`,
|
||||
`https_proxy`, `ftp_proxy`, `no_proxy`, and also the upper case versions of
|
||||
those.
|
||||
those. This option is only needed when the host system must use a proxy but
|
||||
the container should not use any proxy. Proxy environment variables specified
|
||||
for the container in any other way will override the values that would have
|
||||
been passed thru from the host. (Other ways to specify the proxy for the
|
||||
container include passing the values with the `--env` flag, or hardcoding the
|
||||
proxy environment at container build time.)
|
||||
|
||||
For example, to disable passing these environment variables from host to
|
||||
container:
|
||||
|
||||
`--http-proxy=false`
|
||||
|
||||
Defaults to `true`
|
||||
|
||||
|
@ -257,7 +257,17 @@ By default proxy environment variables are passed into the container if set
|
||||
for the podman process. This can be disabled by setting the `--http-proxy`
|
||||
option to `false`. The environment variables passed in include `http_proxy`,
|
||||
`https_proxy`, `ftp_proxy`, `no_proxy`, and also the upper case versions of
|
||||
those.
|
||||
those. This option is only needed when the host system must use a proxy but
|
||||
the container should not use any proxy. Proxy environment variables specified
|
||||
for the container in any other way will override the values that would have
|
||||
been passed thru from the host. (Other ways to specify the proxy for the
|
||||
container include passing the values with the `--env` flag, or hardcoding the
|
||||
proxy environment at container build time.)
|
||||
|
||||
For example, to disable passing these environment variables from host to
|
||||
container:
|
||||
|
||||
`--http-proxy=false`
|
||||
|
||||
Defaults to `true`
|
||||
|
||||
|
Reference in New Issue
Block a user