15
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DockerHubにPushするときに認証エラーが発生したときの対処方法

Posted at

苦労して環境構築したものを使いまわししたいのでDockerHubを試しています。
Pushすると
unauthorized: authentication required
ってエラーが・・・。

# docker push youheinakagawa/testos

Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/youheinakagawa/testos] (len: 0)
ff4b4271129d: Preparing
unauthorized: authentication required

ここに解決方法が載っていました。

Dockerにログインしたあと、
~/.docker/config.json
というファイルのdocker.ioとなっている部分をURLに変更するだけでした。

"docker.io": {

"https://index.docker.io/v1/": {

これで解決です!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?