LoginSignup
1
0

More than 5 years have passed since last update.

mac OSのdockerでrun hello worldがunauthorized: incorrect usernameで失敗する

Posted at

pythonの機械学習を勉強しようと思ってこの本を買ってきて

Pythonによるスクレイピング&機械学習 開発テクニック BeautifulSoup,scikit-learn,TensorFlowを使ってみよう

Appendix「作業の準備と環境構築」に書いてあるとおりに

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を最新版にしてみたり、入れ直してみたりしたけどだめ。

結局、

~/.docker/config.json
{
  "auths" : {
    "https://index.docker.io/v1/" : {

    }
  },
  "credsStore" : "osxkeychain"
}

この "credsStore" : "osxkeychain"を消せばよいことが分かった。

1
0
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
1
0