温馨提示:本文最后更新于2025年3月5日 09:52,若内容或图片失效,请在下方留言或联系博主。
解决docker无法拉取镜像源,报错Unable to find image ‘mysql:latest‘ locally问题
1. 报错代码
docker: Error response from daemon: Get “https://registry-1.docker.io/v2/”: dial tcp 128.242.250.155:443: i/o timeout.
See ‘docker run --help’.
2. 错误原因
这个问题的主要原因是镜像源的问题,有很多镜像源已经不可以用了,所以拉取不了镜像安装,所以我们得配置一些可以用的镜像源。
3. 解决方案
- 打开/etc/docker/daemon.json文件
sudo vi /etc/docker/daemon.json - 复制下方内容粘贴到daemon.json中 完全覆盖daemon.json之前存在的内容
{ "registry-mirrors": ["https://docker.registry.cyou", "https://docker-cf.registry.cyou", "https://dockercf.jsdelivr.fyi", "https://docker.jsdelivr.fyi", "https://dockertest.jsdelivr.fyi", "https://mirror.aliyuncs.com", "https://dockerproxy.com", "https://mirror.baidubce.com", "https://docker.m.daocloud.io", "https://docker.nju.edu.cn", "https://docker.mirrors.sjtug.sjtu.edu.cn", "https://docker.mirrors.ustc.edu.cn", "https://mirror.iscas.ac.cn", "https://docker.rainbond.cc"] }
- 刷新Ddocker配置
systemctl daemon-reload - 重启docker服务
systemctl restart docker - 尝试拉取镜像,耐心等一会
版权所有:久伴博客
文章标题:解决docker无法拉取镜像源,报错Unable to find image ‘mysql:latest‘ locally问题
文章链接:https://8i4.cn/yw/1.html
本站文章均为原创,未经授权请勿用于任何商业用途
文章标题:解决docker无法拉取镜像源,报错Unable to find image ‘mysql:latest‘ locally问题
文章链接:https://8i4.cn/yw/1.html
本站文章均为原创,未经授权请勿用于任何商业用途