Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 3. Configure proxy settings on Linux


To configure proxy settings for Podman on Linux, you must configure Podman directly. This is needed because Red Hat build of Podman Desktop proxy settings have no effect on the Podman service when running on a Linux machine.

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

  1. To use a proxy in your containers, perform the following steps:

    1. Open the containers.conf file.

      Note

      To know about the containers.conf file location, refer to the Control network traffic flow with proxy section.

    2. Set the value of the proxy environment variables to pass to the Podman engine in the file:

      [engine]
      env = ["http_proxy=<your.proxy.tld:port>", "https_proxy=<your.proxy.tld:port>"]
  2. Optional: To use a custom CA in your proxy, perform the following steps:

    1. Run the following command to copy the certificate to the Podman machine:

      $ sudo cp proxy_ca.pem /etc/pki/ca-trust/source/anchors/
    2. Run the following command to add your proxy certificate to the trust store:

      $ sudo update-ca-trust
  3. Run the following command to restart all podman processes.

    $ pkill podman

Verification

  1. Go to Images from the left navigation pane.
  2. Click Pull an image.

    • Image to Pull: Enter an image name, such as quay.io/podman/hello.
  3. Click Pull image. Red Hat build of Podman Desktop reports Download complete after a while.
  4. Click Done.

You can access the image from an external repository.

Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2026 Red Hat
Retour au début