Set HTTP Proxy variables for Podman
To pull images behind a proxy server, you must set HTTP proxy variables for Podman.
Podman reads the environment variable HTTP_PROXY to ascertain the HTTP Proxy information. HTTP proxy information can be configured as an environment variable or under /etc/profile.d.
Before you begin
- The
container-toolmeta package is installed.
Procedure
Set proxy variables for Podman. For example:
- Unauthenticated proxy:
# cat /etc/profile.d/unauthenticated_http_proxy.shexport HTTP_PROXY=http://192.168.0.1:3128 export HTTPS_PROXY=http://192.168.0.1:3128 export NO_PROXY=example.com,172.5.0.0/16 - Authenticated proxy:
# cat /etc/profile.d/authenticated_http_proxy.shexport HTTP_PROXY=http://USERNAME:PASSWORD@192.168.0.1:3128 export HTTPS_PROXY=http://USERNAME:PASSWORD@192.168.0.1:3128 export NO_PROXY=example.com,172.5.0.0/16