【Docker拉取镜像报错:error pulling image configuration: Get net/http: TLS handshake timeout】

谁借莪1个温暖的怀抱¢ 2023-10-15 13:33 142阅读 0赞

1、问题描述

Jenkins打包服务时Docker拉去镜像时报错,拉取映像配置时出错:获取网络/http:TLS 握手超时

  1. Caused by: com.spotify.docker.client. exceptions.DockerException: error pulling image configuration : Get net/http:TLS handshake timeout

2、解决方法

① 编辑镜像仓库文件

  1. sudo vi /etc/docker/daemon.json
  2. #修改为下面的内容
  3. {
  4. "registry-mirrors": ["https://registry.docker-cn.com","https://s3d6l2fh.mirror.aliyuncs.com"]
  5. }

② 然后重启docker

  1. docker sudo systemctl restart docker

最后附上报错截图

06a3ad7e8b06441b98d5becb2eccbe3d.png

修改后拉取成功

fa017ef1a76646f98d7fc7b0b5536260.png

发表评论

表情:
评论列表 (有 0 条评论,142人围观)

还没有评论,来说两句吧...

相关阅读