共计 407 个字符,预计需要花费 2 分钟才能阅读完成。
尝试了很多方法,依然无法拉取镜像
$ docker pull busybox
Using default tag: latest
latest: Pulling from library/busybox
213a27df5921: Retrying in 1 second
error pulling image configuration: download failed after attempts=6: net/http: TLS handshake timeout
方法一:设置终端代理
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
方法二:设置 daemon.json
按照官方文档 Configure the daemon to use a proxy 修改 ~/.docker/daemon.json
。
以上方法都不生效。
正文完