【Docker】unauthorized: incorrect username or password

昨天朋友推荐玩玩 Docker。虽然之前就听过,但一直不清楚干嘛的,也没去搞过,虽然前段时间就装了,但一直没打开。这两天刚开始熟悉,就遇到了点小问题。一番 Google 之后解决了,记录一下。

CLI (command-line interface, 命令行界面) 使用

docker pull centos

命令时报了该错误,详情:

Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/centos/manifests/latest: unauthorized: incorrect username or password

解决方法:
命令行输入 docker login,使用 docker ID

参考:
https://github.com/docker/hub-feedback/issues/630
https://github.com/docker/hub-feedback/issues/935

原文地址:https://www.cnblogs.com/jaxer/p/7742186.html