LoginSignup
3
4

More than 5 years have passed since last update.

docker pull で unauthorized: incorrect username or password と出た時

Posted at

MySQLの実行環境を作ろうと思ってdocker pullしたら下記のようなエラー。

$ docker pull mysql:5.7
Error response from daemon: Get https://registry-1.docker.io/v2/library/mysql/manifests/5.7: unauthorized: incorrect username or password

どうやら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 (******@gmail.com): DockerHubのユーザ名
Password:
Login Succeeded

再度実行して無事pullできました

$ docker pull mysql:5.7
5.7: Pulling from library/mysql
...略
Status: Downloaded newer image for mysql:5.7
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4