반응형
For docker
sudo mkdir -p /etc/systemd/system/docker.service.d
create a file /etc/systemd/system/docker.service.d/http-proxy.conf
cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment=”HTTP_PROXY=http://<proxy_IP>:<proxy_port>"
Environment=”HTTPS_PROXY=http://<proxy_IP>:<proxy_port>"
Restart the docker daemon
systemctl daemon-reload
systemctl restart docker
적용된 결과 확인
$ systemctl show --property=Environment docker
반응형
'IT Knowledge > Docker' 카테고리의 다른 글
Docker.sock 일반 계정 사용 권한 이슈(permission denied) (2) | 2022.01.05 |
---|---|
Docker 용량 확인 및 관리(df, prune) (4) | 2021.09.26 |
Docker 간단한 Node.js 앱 만들기 (0) | 2021.09.08 |
[Docker] Install Docker Engine on CentOS (0) | 2021.06.10 |
댓글