今天刚刚装完mac版本的docker
发现无法拉取镜像
搜索一波发现是源的问题
因为我的账号密码都是对的
简单粗暴,改不需要任何注册的加速镜像
一、问题
hisenyuan$ docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.
二、解决,添加国内镜像
https://docker.mirrors.ustc.edu.cn
https://hub-mirror.c.163.com
docker -> preference -> daemon -> registry mirrors
粘贴进去即可,一行一个。
然后点击 Apply & Restart 按钮使设置生效
网友评论