Docker配置拉取镜像的代理 SoulChild 收录于 docker 2023-06-14 13:58 约 38 字 预计阅读 1 分钟 - 次阅读 警告本文最后更新于 2023-06-14 13:58,文中内容可能已过时。总忘, 备忘一下 1 2 3 4 5 6 7 8 9 10 11 12 13 sudo mkdir -p /etc/systemd/system/docker.service.d cat >> /etc/systemd/system/docker.service.d/http-proxy.conf <<EOF [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 docker info | grep Proxy 请我喝杯水 赞赏 微信号 微信打赏Please enable JavaScript to view the comments powered by giscus.