$ 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
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/centos/manifests/latest : unauthorized: incorrect username or password
エラーメッセージを読みと、unauthorizedってかいてあるので、ユーザ認証ができていない?
ということで、docker loginでログイン。
$ docker login
Authenticating with existing credentials...
Stored credentials invalid or expired
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (xxx@xxx.xxx):
Password:
Authenticating with existing credentials...
Stored credentials invalid or expired
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (xxx@xxx.xxx):
Password:
無事に解決しました。