Docker Community Forums

Share and learn in the Docker community.

Docker push - FATA[0005] Error pushing to registry: Authentication is required


(Shyam Ramaseshan) #1

I just created my Docker Hub user account and I am not able to push a image to Docker Hub.

This is the error I am getting -

root@spark:~# docker push shyam/spark
The push refers to a repository [shyam/spark] (len: 1)
6ef67f44fcd9: Image push failed

Please login prior to push:
Username (rshyam):
WARNING: login credentials saved in /root/.dockercfg.
Login Succeeded
The push refers to a repository [shyam/spark] (len: 1)
6ef67f44fcd9: Image push failed
FATA[0005] Error pushing to registry: Authentication is required.

Docker details -

Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64


(Sabin Basyal) #2

Hi Shyam,

You cannot push to shyam/spark by logging in as rshyam. Please log in as shyam and push or push to rshyam/spark.

Regards,
Sabin