11.10. Podman의 HTTP 프록시 변수 설정
프록시 서버 뒤에서 이미지를 가져오려면 Podman에 HTTP 프록시 변수를 설정해야 합니다. Podman은 환경 변수 HTTP_PROXY
를 읽고 HTTP 프록시 정보를 확인합니다. HTTP 프록시 정보는 환경 변수 또는 /etc/profile.d
아래에 구성할 수 있습니다.
절차
Podman의 프록시 변수를 설정합니다. 예를 들면 다음과 같습니다.
인증되지 않은 프록시:
# cat /etc/profile.d/unauthenticated_http_proxy.sh export 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
인증된 프록시:
# cat /etc/profile.d/authenticated_http_proxy.sh export 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