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?
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:
Uncheck the Active checkbox in “Build Details” => “Edit Build Details” and try to push the taged local image or
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.
[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.
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.
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.
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>