このコンテンツは選択した言語では利用できません。
Chapter 2. Configure proxy settings on macOS and Windows
You can configure proxy settings for Red Hat build of Podman Desktop on both macOS and Windows machines. The configuration procedure remains the same on both machines.
Prerequisites
-
You have a proxy URL in the format:
<your.proxy.tld:port>. - Optional: You have proxy Certificate Authorities (CAs) in Privacy-Enhanced Mail (PEM) format.
Procedure
Set up your proxy configuration mode:
- Go to Settings > Proxy from the left navigation pane.
Select a proxy configuration: System, Manual, or Disabled.
If you select Manual, configure your proxy URLs and bypass proxy settings details. The other two modes require no additional configuration.
Figure 2.1. Set your proxy configuration mode
- Click Update. A notification opens.
- Click OK.
Optional: To use a custom CA in your proxy, perform the following steps:
-
Store your proxy CA in PEM format in the
proxy_ca.pemfile. Copy the certificate to the Podman machine:
$ cat proxy_ca.pem | podman machine ssh <machine_name> "cat > proxy_ca.pem"Start an interactive session with the Podman machine:
$ podman machine ssh <machine_name>Run the following command to copy the certificate to the Podman machine:
$ sudo cp proxy_ca.pem /etc/pki/ca-trust/source/anchors/Run the following command to add your proxy certificate to the trust store:
$ sudo update-ca-trust
-
Store your proxy CA in PEM format in the
To use a proxy in your containers, perform the following steps:
Start an interactive session with the Podman machine:
$ podman machine ssh <machine_name>Open the
containers.conffile.NoteTo know about the
containers.conffile location, refer to the Control network traffic flow with proxy section.Set the value of the proxy environment variables to pass into the containers in the file:
[containers] http_proxy = true env = ["http_proxy=<your.proxy.tld:port>", "https_proxy=<your.proxy.tld:port>"]
- Go to the Settings > Resources page, and restart the Podman machine.
Verification
- Go to Images from the left navigation pane.
Click Pull an image.
-
Image to Pull: Enter an image name, such as
quay.io/podman/hello.
-
Image to Pull: Enter an image name, such as
-
Click Pull image. Red Hat build of Podman Desktop reports
Download completeafter a while. - Click Done.
You can access the image from an external repository.