昨天朋友推薦玩玩 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