LoginSignup
33
10

More than 5 years have passed since last update.

Docker for Mac の "incorrect username or password" エラーの対処法

Last updated at Posted at 2018-05-02

Docker for Macをインストールしてみたものの,イメージのダウンロード(Docker pull)が,認証エラーによってうまく動かないことがある.

エラーメッセージ

正しいE-mailとパスワードを入力して,認証を終わっているのに,ドキュメントの最初に書いてある hello-worldですらpullできない

$ docker run hello-world

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.
See 'docker run --help'.

対処方法

docker cloudのIDとしてE-mailアドレスを入れている場合,このエラーが出る.

  1. メニューバーのアイコンから,Sign in / Create Docker IDを選ぶ

    スクリーンショット 2018-05-02 13.15.20.png

  1. あらかじめ登録しておいたDocker IDのEmailではない方を入力する

    スクリーンショット 2018-05-02 13.15.30.png

確認

これでpullができるようになります.

$ docker run hello-world

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9bb5a5d4561a: Pull complete 
Digest: sha256:f5233545e43561214ca4891fd1157e1c3c563316ed8e237750d59bde73361e77
Status: Downloaded newer image for hello-world:latest

Hello from Docker!

参考情報

  1. はじめてのDocker for Mac
  2. dockerのmacへのインストール手順
  3. Docker for Macのインストール
  4. Docker for Macをインストールしてみた
  5. macOSでDocker環境構築
  6. "docker pull" and "docker login" command failed ,When logging in the Docker ID(Using High Sierra 10.13.0)
33
10
1

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
33
10