パブリックイメージをpullするとエラー

現象

 CMD> docker run -it ubuntu /bin.bash
 
 Unable to find image 'ubuntu:latest' locally
 docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest:
    unauthorized: incorrect username or password.
 See 'docker run --help'
  • パブリックイメージ(ここではubuntu)をプルしようとすると、上のようにエラーになる

解決方法

  • Docker Hubにログインする
  • Docker for Windowsの場合、タスクトレイのアイコンからSign Inを選ぶ
  • サインイン後はDockerエンジンを再起動する

参考

https://stackoverflow.com/questions/38248411/why-do-i-get-an-authorization-error-from-docker-when-im-trying-to-pull-a-public


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2021-03-06 (土) 10:57:47