解决Error Get "https://registry-1.docker.io/v2/":环境报错问题~亲测有效
最近在使用ubuntu 20.04部署docker等程序服务 发现 使用docker 拉取镜像时环境报错 mysql Error Get "https://registry-1.docker.io/v2/":环境报错问题 找了很多贴子
有人说之前的资源地址被墙了,可以使用更换成国内镜像源 和 添加代理地址的方式
经过我的不断尝试 找到此问题的解决方案
通过添加国内镜像代理 成功解决 已下是解决方案
1.进入 Docker 配置文件,通常位于 /etc/docker/daemon.json
sudo vi /etc/docker/daemon.json
添加已下内容
{ "registry-mirrors": [ "https://docker.m.daocloud.io/", "https://huecker.io/", "https://dockerhub.timeweb.cloud", "https://noohub.ru/", "https://dockerproxy.com", "https://docker.mirrors.ustc.edu.cn", "https://docker.nju.edu.cn", "https://xx4bwyg2.mirror.aliyuncs.com", "http://f1361db2.m.daocloud.io", "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn" ] }
修改完成后,重启 Docker 服务:
来源:https://www.cnblogs.com/OneSeting/p/18532166 |