본문 바로가기
linux/docker

docker pull proxy 설정

by 후린트 2020. 9. 18.
반응형

참고 : docs.openshift.com/container-platform/3.4/install_config/http_proxies.html#proxying-docker-pull

 

Working with HTTP Proxies | Installation and Configuration | OpenShift Container Platform 3.4

If your Git repository can only be accessed using a proxy, you can define the proxy to use in the source section of the BuildConfig. You can configure both a HTTP and HTTPS proxy to use. Both fields are optional. Domains for which no proxying should be per

docs.openshift.com

 

centos7 기준

#/etc/sysconfig/docker 파일 수정

$sudo vi /etc/sysconfig/docker

HTTP_PROXY=http://<user>:<password>@<ip_addr>:<port>/
HTTPS_PROXY=https://<user>:<password>@<ip_addr>:<port>/
NO_PROXY=master.hostname.example.com,<docker_registry_ip>,docker-registry.default.svc.cluster.local

# docker 서비스 restart
$ sudo service docker restart
OR
$ sudo systemctl restart docker.service


 

반응형