"Docker 프록시 설정하기"의 두 판 사이의 차이

3번째 줄: 3번째 줄:


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
sudo -i
mkdir -p /etc/systemd/system/docker.service.d
mkdir -p /etc/systemd/system/docker.service.d
</syntaxhighlight>
</syntaxhighlight>

2024년 4월 26일 (금) 15:51 판

1 개요

Docker 프록시 설정
sudo -i
mkdir -p /etc/systemd/system/docker.service.d
cat <<EOF > /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:3128"
Environment="HTTPS_PROXY=https://proxy.example.com:3129"
Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp"
EOF
systemctl daemon-reload
systemctl restart docker

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}