已解决:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout
生活随笔
收集整理的這篇文章主要介紹了
已解决:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、問題描述
下載rancher/mirrored-flannelcni-flannel-cni-plugin:v1.0.0鏡像報以下錯誤:
Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/2.04: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&serviceregistry.docker.io: net/http: TLS handshake timeout2、問題分析
倘若不配置鏡像,拉取速度會很慢,就會報超時的錯誤。
3、解決方法
配置阿里云的鏡像:
在vi /etc/docker/daemon.json中添加:
"registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]?添加位置如下:
{ "exec-opts":["native.cgroupdriver=systemd"], "registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"], "log-driver":"json-file", "log-opts":{"max-size":"100m" } }?4、結果測試
[root@k8s-master01 pki]# docker pull rancher/mirrored-flannelcni-flannel-cni-plugin:v1.0.0 v1.0.0: Pulling from rancher/mirrored-flannelcni-flannel-cni-plugin 4e9f2cdf4387: Pull complete 6ff8050baee9: Pull complete Digest: sha256:bfe8f30c74bc6f31eba0cc6659e396dbdd5ab171314ed542cc238ae046660ede Status: Image is up to date for rancher/mirrored-flannelcni-flannel-cni-plugin:v1.0.0 docker.io/rancher/mirrored-flannelcni-flannel-cni-plugin:v1.0.0 [root@k8s-master01 pki]#總結
以上是生活随笔為你收集整理的已解决:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 已解决:Connecting to ra
- 下一篇: 已解决:Job for docker.s