赞
踩
docker: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/be/be37522b27a4350f7c2a4d744aab5a71e97aa985cf71d5db7b8a906a4087393a/data?verify=1720094462-pV8%2FGd0wvFHqBxOxXmv7APiD%2FYw%3D: dial tcp 128.242.240.157:443: i/o timeout.
See 'docker run --help'.
- export http_proxy=http://172.20.40.25:10809
- export https_proxy=http://172.20.40.25:10809
-
- #创建一下目录和文件
- mkdir /etc/systemd/system/docker.service.d/
- vim /etc/systemd/system/docker.service.d/http-proxy.conf
-
- #添加一下内容
- [Service]
- Environment="HTTP_PROXY=http://172.20.40.25:10809"
- Environment="HTTPS_PROXY=http://172.20.40.25:10809"
- Environment="NO_PROXY=localhost,127.0.0.1"
-
- #重启
- systemctl daemon-reload
- systemctl restart docker
-
- #检查代理
- docker info | grep -i proxy
成功安装
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。