Error pushing to registry: Authentication is required

It will not work for me.
I installed docker again on my debian wheezy with.

curl -sSL https://get.docker.com/ | sh

But same error. After

docker login

Username (myusername):
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded

docker push [image]

The push refers to a repository [image] (len: 2)
fed8e9b87f98: Image push failed

Please login prior to push:
Username (myusername):
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded
The push refers to a repository [image] (len: 2)
fed8e9b87f98: Image push failed
Error pushing to registry: Authentication is required.

Why docker says Login Succeeded after login and after push Authentification is required.
Is the problem solved or not? And when yes, how can I update docker for me.
How can I help to make it more clear that a push will work?
I have an AUTOMATED BUILD REPOSITORY. Can I add tags in other way than to add localy and push?

@pkorduan,
Are you trying to push manually to an Automated Build repository? If so, you cannot do that, by design.
Regards,
Sabin

Thank you for this info. Yes I do. But when I cannot do that by design. why docker tells me “Authentication is required” and not “Push to an automated builded repo is not allowed”. But it does no matter so far. My question is how to add a Tag when I cannot push a local taged image? I saw two options:

  1. Uncheck the Active checkbox in “Build Details” => “Edit Build Details” and try to push the taged local image or
  2. Add a new build with a new Tag in the field “Docker Tag Name” and “Save and trigger build”.

I chosed the second option. Now the trigger built the same image two times with two different tags (nice, exactly what I whant), but after this build I had to remove the automated build for the tag with the new version number. Later if I have a new stable version I can add a new version in this described way.

Hi Peter,

If you want to remove the tags from automated build, just let me know and I will remove it for you.

Regards,
Sabin

I’m still hitting this issue, and I noticed that it was first posted in May. Not good people!

Experiencing this right now

[root@docker ~]# docker login Username (liuqian00): liuqian00 WARNING: login credentials saved in /root/.docker/config.json Login Succeeded [root@docker ~]# docker push liuqian/centos:7 Do you really want to push to public registry? [y/n]: y The push refers to a repository [docker.io/liuqian/centos] (len: 1) 5972c8b5942d: Image push failed Please login prior to push: Username (liuqian00): liuqian00 WARNING: login credentials saved in /root/.docker/config.json Login Succeeded The push refers to a repository [docker.io/liuqian/centos] (len: 1) 5972c8b5942d: Image push failed Error pushing to registry: Authentication is required.

[root@docker ~]#

I am experiencing the very same problem - no Automated Build repository.

docker login
...
WARNING: login credentials saved in /var/lib/jenkins/.dockercfg.
Login Succeeded

Then push :

The push refers to a repository [christophearnaud/vertx-updates-server] (len: 1)
1ebe593d32dc: Image push failed

Please login prior to push:
Username: 

Already try to delete and recreate repo, as well as relogin… Could you help me?

Ok my stupid fault.

Did login docker ... but sudo docker push....

I had same error with tutorial because as you say tutorial does not include the docker login step. Using docker login first solved issue with tutorial. Thanks for post.

  • tutorial needs editing?

Can’t push either

frank@franktop:~/src/mesos-local$ docker logout
Remove login credentials for https://index.docker.io/v1/
frank@franktop:~/src/mesos-local$ docker login
Username: frankscholten
Password: 
Email: frank************
WARNING: login credentials saved in /home/frank/.docker/config.json
Login Succeeded
frank@franktop:~/src/mesos-local$ docker push containersol/mesos-local:2.1
The push refers to a repository [containersol/mesos-local] (len: 1)
879516e892a0: Image push failed 

Please login prior to push:
Username (frankscholten): 
WARNING: login credentials saved in /home/frank/.docker/config.json
Login Succeeded
The push refers to a repository [containersol/mesos-local] (len: 1)
879516e892a0: Image push failed 
Error pushing to registry: Authentication is required.
frank@franktop:~/src/mesos-local$

Can’t push either

Docker version 1.7.1, build 786b29d

The push refers to a repository [ubuntu/theringe] (len: 1)
4b889e6dffa6: Image push failed

Please login prior to push:
Username (theringe):
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded
The push refers to a repository [ubuntu/theringe] (len: 1)
4b889e6dffa6: Image push failed
Error pushing to registry: Authentication is required.

It seems the reason I can’t push is because the repo is an automated build

I know this is a bit old but I’m having the same issue:

Image push failed
Error pushing to registry: Authentication is required.
Docker version 1.7.1, build 786b29d/1.7.1

Does any solution has been found?

Same issue.

> docker push kentmw/my-repo:latest
The push refers to a repository [kentmw/my-repo] (len: 1)
f4f8a64fcb34: Image push failed 

Please login prior to push:
Username (kentmw): 
WARNING: login credentials saved in /home/my-user/.docker/config.json
Login Succeeded
The push refers to a repository [kentmw/my-repo] (len: 1)
f4f8a64fcb34: Image push failed 
Error pushing to registry: Authentication is required.

Hi, I’m having the same issue today. Is this an issue on the Docker Hub side or something is wrong with my repo or account?

$ docker login
Username (macrokernel): macrokernel
WARNING: login credentials saved in /home/macrokernel/.docker/config.json
Login Succeeded
$ docker push jetnexus/alb:latest-BerlinSP1
The push refers to a repository [jetnexus/alb] (len: 1)
18b037bfc942: Image push failed

Please login prior to push:
Username (macrokernel): macrokernel
WARNING: login credentials saved in /home/macrokernel/.docker/config.json
Login Succeeded
The push refers to a repository [jetnexus/alb] (len: 1)
18b037bfc942: Image push failed
Error pushing to registry: Authentication is required.

I had this issue also. I needed to first create such repository through website on docker hub, and then change local image name to hub’s repository name (“docker tag localuser/localname webuser/webname”), and then just push

Had same issue. You have to start docker push with sudo. It’s good to login first. Have done this things:
docker login <docker_hub login>
sudo docker push <image_name>

Works for me! :slightly_smiling:

had the same issue today, newly created account. push fails with:
unauthorized: authentication required

same issue here, no fix yet?