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

2번째 줄: 2번째 줄:
;Docker 프록시 설정
;Docker 프록시 설정


==현재버전==
<syntaxhighlight lang='bash'>
mkdir -p ~/.docker
vi ~/.docker/config.json
</syntaxhighlight>
<syntaxhighlight lang='json'>
{
"proxies": {
  "default": {
    "httpProxy": "http://proxy.example.com:3128",
    "httpsProxy": "https://proxy.example.com:3129",
    "noProxy": "*.test.example.com,.example.org,127.0.0.0/8"
  }
}
}
</syntaxhighlight>
==옛날버전==
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
mkdir -p /etc/systemd/system/docker.service.d
mkdir -p /etc/systemd/system/docker.service.d

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

1 개요

Docker 프록시 설정
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:80/"
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 }}