问题
拉取Docker镜像报错 :
unauthorized: incorrect username or password.
docker: Error response from daemon: Get https://registry-1.docker.io/v2/tensorflow/serving/manifests/nightly-devel: unauthorized: incorrect username or password.
解决
可以通过Docker --> Preferences --> Daemon
,在Registry mirrors
中添加一条:
https://registry.docker-cn.com
这里, 如果前缀是https
的话, 有可能会抛出如下图片中的警告:
这是因为没有对应的证书. 可以直接用http
前缀来进行替换从而避开这个警告.
重启Docker, 重新pull即可解决问题.
分析
Docker拉取镜像报错unauthorized: incorrect username or password的解决方法