docker无法拉取镜像
- 创建文件
mkdir -p /etc/systemd/system/docker.service.d
vim /etc/systemd/system/docker.service.d/http-proxy.conf
- 输入内容
[Service]
Environment="HTTP_PROXY=http://192.168.8.125:10819"
Environment="HTTPS_PROXY=http://192.168.8.125:10819"
Environment="NO_PROXY=your-registry.com,10.10.10.10,*.example.com"
- 将其中ip换成机器ip以及梯子端口,重启docker
systemctl daemon-reload
systemctl restart docker

浙公网安备 33010602011771号