1
233373 2022-11-01 14:03:10 +08:00
网络问题
|
2
tylinux 2022-11-01 17:04:00 +08:00 1
docker pull 用代理貌似不走 http_proxy 。可以:
mkdir /etc/systemd/system/docker.service.d nano /etc/systemd/system/docker.service.d/http-proxy.conf systemctl daemon-reload systemctl restart docker systemctl show --property Environment docker http-proxy.conf 的内容是: [Service] Environment=HTTP_PROXY=http://127.0.0.1:1087 Environment=HTTPS_PROXY=http://127.0.0.1:1087 Environment=NO_PROXY=localhost,127.0.0.0/8,registry.xxx.com |
3
documentzhangx66 2022-11-01 17:05:33 +08:00
谷歌,如何使用科学上网线路。
谷歌,如何让 docker 走科学上网线路。 |
4
PikachuOV 2022-11-06 11:56:19 +08:00 via Android
去网上扒下来,本地安装
|
5
wxyrrcj 2023-02-09 10:03:27 +08:00
1. 在服务器上添加如下目录
bash mkdir /etc/systemd/system/docker.service.d 2. 创建如下文件,并配置你的代理服务器 bash vim /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=http://172.31.170.2:13080" Environment="HTTPS_PROXY=http://172.31.170.2:13080" 3. 重启 docker bash sudo systemctl daemon-reload sudo systemctl restart docker 4. 检查代理配置 bash docker info | grep Proxy |