denied: requested access to the resource is denied

2019-01-12 16:41发布

I am following this link to create my first docker Image and it went successfully and now I am trying to push this Image into my docker repository from this link. But whenever I am trying to push this Image into repository , I got this type of error.

denied: requested access to the resource is denied

enter image description here

Could anyone give me some hint towards this problem ? Any help would appreciated.

Note: I have successfully login into docker

30条回答
走好不送
2楼-- · 2019-01-12 17:10

I'm also having this issue. Turns out I'm using the free tier and trying to push more than 1 image in the private repository. Making 1 image private and the rest public worked for me.

查看更多
爷、活的狠高调
3楼-- · 2019-01-12 17:11

Login from the app. I've been trying only from terminal with no luck.

This is version 17.06.1

enter image description here

查看更多
Anthone
4楼-- · 2019-01-12 17:12

Simple working solution:

Go here https://hub.docker.com/ to create a PRIVATE repository with name for example johnsmith/private-repository this is the NAME/REPOSITORY you will use for your image when building the image.

  • First, docker login

  • Second, I use "docker build -t johnsmith/private-repository:01 ." to create image, and I use "docker images" to confirm the image created such as in this yellow box below: (sorry I can not paste the table format but the text string only)

johnsmith/private-repository(REPOSITORY) 01(TAD) c5f4a2861d6e(IMAGE ID) 2 days ago(CREATED) 305MB(SIZE)

  • Third, I use docker push johnsmith/private-repository:01

Done!

查看更多
乱世女痞
5楼-- · 2019-01-12 17:12

I really hope this helps somebody (who looks to the final answers first as myself):

I continuously tried to type in

docker push user/repo/tag

Instead

docker push user/repo:tag

Since I also made my tag like this:

docker tag image user/repo/tag

...all hell broke lose.

I sincirely hope you don't repeat my mistake. I wasted like 30 mins on this...

查看更多
等我变得足够好
6楼-- · 2019-01-12 17:13

I had the same issue, but accepted answer given here did not work for me. I tried few steps and was able to get around to push it finally. Hope this helps someone.

Here are the steps worked for me :

1) Login to the docker.

docker login -u sirimalla

2) Tag your image build

my image name here is : mylocalimage and by default it has tag : latest
and my username is : sirimalla as registered with docker cloud, and I created a public repository named : dockerhub

so my personal repository becomes now : sirimalla/dockerhub and I want to push my image with tag : myfirstimagepush

I tagged as below :

docker tag mylocalimage:latest sirimalla/dockerhub:myfirstimagepush

3) Pushed the image to my personal docker repository as below

docker push sirimalla/dockerhub:myfirstimagepush

And it successfully pushed to my personal docker repo.

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-01-12 17:13

My issue was very simply using invalid characters (an extra /) in my image name:

myusername/something/image

is an invalid image name. Try myusername/something-image. Hope this helps someone.

查看更多
登录 后发表回答