0
0

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 3 years have passed since last update.

Dockerをpushしようとしたらdeniedとエラーが出た

Posted at

課題

docker push
を実行すると

denied: requested access to the resource is denied

と表示されpushを行うことができなかった。

解決策

イメージをローカルで作成後、プッシュをするにはtagを作成する必要がある。
(githubのcommitと同じような感じだな)

% docker tag イメージID DockerHubのユーザ名/任意の名前

その後、任意でつけたイメージ名を指定してpushすればいい


イメージID:123456789012
DockerHubのユーザ名:hogehoge

% docker tag 123456789012 hogehoge/mogemoge

を実行後、push

% docker push 123456789012 hogehoge/mogemoge
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?