Using Podman Desktop behind a proxy on Linux
You can configure Podman to run behind a proxy.
Prerequisites
<proxy_ca.pem>
: Your proxy Certificate Authorities (CA), in Privacy-Enhanced Mail (PEM) format.<your.proxy.tld:port>
: Your proxy URL.
Procedure
Edit the
containers.conf
file to pass the proxy environment variables to Podman CLI.The file location depends on your connection mode:
rootless
:$HOME/.config/containers/containers.conf
rootful
:/etc/containers/containers.conf
Set the proxy environment variables to pass into the containers:
[containers]
http_proxy = true
env = ["http_proxy=<your.proxy.tld:port>", "https_proxy=<your.proxy.tld:port>"]Set the proxy environment variables to pass into the Podman engine:
[engine]
env = ["http_proxy=<your.proxy.tld:port>", "https_proxy=<your.proxy.tld:port>"]Add the custom Certificate Authorities (CA) for your proxy:
$ sudo cp <proxy_ca.pem> /etc/pki/ca-trust/source/anchors/
$ sudo update-ca-trustRestart all
podman
processes.$ pkill podman
Restart Podman Desktop: Ctrl + q.
Verification
- Go to Images.
- Click Pull an image.
- Image to Pull:
bash
- Click Pull image.
- Podman Desktop reports
Download complete
.