Category: ‘Docker’

Docker で、denied: requested access to the resource is denied エラー

2020年11月6日 Posted by PURGE

Dockerで、 ローカル環境からDockerhub へpush しようとしたが、 denied: requested access to the resource is denied エラーが出た。結論から言うと、下記のように Dockerhubの名前空間に変更しなければならないようだ。

denied: requested access to the resource is denied

>docker push hello
The push refers to repository [docker.io/library/hello]
75b7d7e2d2e1: Preparing                                                                                                 1a5ad2344ee1: Preparing                                                                                                 ace0eda3e3be: Preparing                                                                                                 denied: requested access to the resource is denied

docker image tag で名前空間のtag 名を付加する

>docker image tag hello:1.0 dockerhub_name/hello:1.0

再度、Dockerhubへpush。

>docker push dockerhub_name/hello:1.0
The push refers to repository [docker.io/dockerhub_name/hello]
75b7d7e2d2e1: Pushed                                                                                                    1a5ad2344ee1: Pushed                                                                                                    ace0eda3e3be: Pushed                                                                                                    1.0: digest: sha256:abcdefghijklmnopqrstuvwxyz123456789 size: 946