New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to push my image to Docker Hub #31760
Comments
Can you provide the information that's requested in the issue template? At least the output of Alsl keep in mind that the GitHub issue tracker is not intended as a general support forum, |
DOCKER VERSION#-> docker version Server: Docker Info#-> docker info Please let me know in case of any queries. |
I don't see anything standing out from that output; do you still have damon logs from when the push failed Ideally of the daemon in debug mode)? If you're still able to reproduce, can you put the daemon in debug mode; easiest way is to create a file named { "debug":true } And restart the daemon ( |
I'm seeing the same issue with Here is the relevant log output:
It seems to fail the first time, but at Any ideas? |
I too am hitting exactly the same issue. Can login, but can't push. Have restarted Docker and rebooted. |
@AndrewFWolfe |
@vivekkrdubey |
I was running into the same issue and narrowed it down to Dockerhub repo settings. Since the free plan on Dockerhub only allows one private repo, my subsequent pushes would create an empty private repo on the hub, but fail to push an actual image (the compressed size of the Here are the steps to reproduce the issue (assuming you already have at least 1 private repo on Dockerhub): $ docker tag hello-world:latest manujbhatia/hello-world:latest
$ docker push manujbhatia/hello-world:latest
The push refers to a repository [docker.io/manujbhatia/hello-world]
5f70bf18a086: Mounted from prom/node-exporter
33e7801ac047: Pushed
latest: digest: sha256:bf49513b06f261953b0df9bf9dfcfd491adfd358a13cfdba0268a4b2b1e7a3c0 size: 730
## No error is reported, but the repository is created as a private repo on Dockerhub and latest tag has a compressed size of 0 bytes.
## The pull fails, as the image is not on the hub
$ docker pull manujbhatia/hello-world:latest
Error response from daemon: repository manujbhatia/hello-world not found: does not exist or no pull access
## Subsequent push fails too
$ docker push manujbhatia/hello-world:latest
The push refers to a repository [docker.io/manujbhatia/hello-world]
5f70bf18a086: Preparing
33e7801ac047: Preparing
denied: requested access to the resource is denied
## Make the repository on Dockerhub public and the push is successful
$ docker push manujbhatia/hello-world:latest
The push refers to a repository [docker.io/manujbhatia/hello-world]
5f70bf18a086: Layer already exists
33e7801ac047: Layer already exists
latest: digest: sha256:bf49513b06f261953b0df9bf9dfcfd491adfd358a13cfdba0268a4b2b1e7a3c0 size: 730 |
@mbhatia interesting; could you check your configuration on Docker Hub? There's an option if new repositories should default to "public" or "private"; wondering if that plays a role here; |
@thaJeztah, that was it. My account was setup to default to $ docker tag hello-world:latest manujbhatia/hello-world1:latest
$ docker push manujbhatia/hello-world1:latest
The push refers to a repository [docker.io/manujbhatia/hello-world1]
45761469c965: Mounted from library/hello-world
latest: digest: sha256:f3b3b28a45160805bb16542c9531888519430e9e6d6ffc09d72261b0d26ff74f size: 524
$ docker pull manujbhatia/hello-world1:latest
latest: Pulling from manujbhatia/hello-world1
Digest: sha256:f3b3b28a45160805bb16542c9531888519430e9e6d6ffc09d72261b0d26ff74f
Status: Image is up to date for manujbhatia/hello-world1:latest
$ docker push manujbhatia/hello-world1:latest
The push refers to a repository [docker.io/manujbhatia/hello-world1]
45761469c965: Layer already exists
latest: digest: sha256:f3b3b28a45160805bb16542c9531888519430e9e6d6ffc09d72261b0d26ff74f size: 524 |
@mbhatia great! that mystery is resolved then. We still need to look into the original issue; I'm not familiar with the way quota limits are implemented in Docker Hub, so I'd have to try to reach the Docker Hub team to get more information on that; questions I'll have get answered;
Thanks so much for your reproduction steps! |
I am having a very similar issue now. I can push if the image path only contains two components, i.e. something like: It gave the same error: denied: requested access to the resource is denied In my account settings I have set the default visibility of my repos as public.
I tried:
then
The docker daemon log I got is:
It kind of look like I can not push V2 images (as a 3 component path image can only be a V2 image). |
@wzheng2310 I suspect this is restricted on Docker Hub (possibly for compatibility reasons); even though the specifications allow it. I agree that a better error message would be nice to have. I asked these questions internally;
And, currently Docker Hub does not return a different error message for the "quota" limit. There were no plans to add different errors, but I can try opening a feature request. With the information discussed in this issue; there's nothing that can be done in this repository, because these changes need to be made on Docker Hub. I'll close this issue for that reason, but feel free to continue the discussion; I'll update if I receive more information about possible enhancements on Docker Hub |
Sorry I still do not understand the reason. Are you saying this is due to quota problem? Could you be more specific about what kind of quota is limited? My account only has a few images, which are very small. Can I delete something to make more room under my current quota? Or are you saying that pushing image whose name is a 3 path component is not allowed on Docker Hub? If this is the case, will upgrade to paid account solve this problem? Or can I set up a new account so the new account will support this? My account was created when only V1 image was supported. Thank you very much! |
@wzheng2310 I summarised the issues being reported here (which are two separate issues);
|
I ran into the same problem because I named my images by |
rename your image to username/image-name |
first you have to login |
@mgsomeone Thank you. After i logged in on terminal i able to push my image |
had a same problem, fixed by unlinking my Github project... so it's clear where is the issue... :) |
dude, you saved my life!!! thanks a lot! |
Hi I am able to successfully login but unable to push my local image to Docker Hub.
#-> docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: vivekkrdubeyhub
Password:
Login Succeeded
#-> docker push vivekkrdubeyhub/myrepo
The push refers to a repository [docker.io/vivekkrdubeyhub/myrepo]
3602cd2b738c: Preparing
ad12c47d819e: Preparing
074e78f994f8: Preparing
c15c995bb6bf: Preparing
00343924ca78: Preparing
56827159aa8b: Waiting
440e02c3dcde: Waiting
29660d0e5bb2: Waiting
85782553e37a: Waiting
745f5be9952c: Waiting
denied: requested access to the resource is denied
I have tried logging out, re-login, create new Docker Hub user but still nothing helps.
My config.json looks like
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "Some Text Here"
}
}
Please help !!
The text was updated successfully, but these errors were encountered: