1. 使用docker拉取對應(yīng)的鏡像的時候報錯:docker: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/04/04540a0bb9853e0c23e03f0cfbde3fdbdb01590a663fe18860cb3425cd64aea8/data?verify=1703832355-UFgWc0cR%2BiTO%2BkcRi6YlKA%2BEVi4%3D: net/http: TLS handshake timeout.
2.百度了一下說要更新鏡像倉庫文件/etc/docker/daemon.json我按照方法改成了:
#? ?sudo vi /etc/docker/daemon.json? ?
{ "registry-mirrors": ["https://registry.docker-cn.com","https://s3d6l2fh.mirror.aliyuncs.com"] }
# 重啟docker
#sudo systemctl restart docker
3.再次進(jìn)行拉取鏡像文件報新的錯誤:
4. 網(wǎng)上百度了一下說是DNS的問題
修改這個文件并且增加新的nameserver? 114.114.114.114
5.再次拉取鏡像還是失敗,然后又百度了一下說還是鏡像倉庫的問題多加幾個下載源
#vim /etc/docker/daemon.json? ? 將這個文件里面的內(nèi)容清空替換成:
"registry-mirrors": ["http://hub-mirror.c.163.com",
? ? ? ? "https://docker.mirrors.ustc.edu.cn",
? ? ? ? "https://registry.docker-cn.com",
? ? ? ? "http://hub-mirror.c.163.com",
? ? ? ? "https://docker.mirrors.ustc.edu.cn",
? ? ? ? "https://docker.mirrors.ustc.edu.cn"
? ? ? ? ]
#?systemctl restart docker? ?重啟docker
6.再次拉取鏡像,拉取鏡像成功
7.查看已有的鏡像文章來源:http://www.zghlxwxcb.cn/news/detail-861033.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-861033.html
到了這里,關(guān)于docker拉取鏡像報錯:docker: error pulling image configuration: Get https://production.cloudflare.docker.com的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!