Docker Community Forums

Share and learn in the Docker community.

DTR login issue :Error response from daemon: Registration: "Forbidden username"


(Ralph Kincade) #1

I login to my DTR that I just created at on my Ubuntu docker-cs0.int.bork.com from my Ubuntu docker-cs1

with

user@docker-cs1:~$ docker login docker-cs0.int.bork.com
Username (admin):
WARNING: login credentials saved in /home/user/.dockercfg.
Login Succeeded
user@docker-cs1:~$

I pull down a busybox and can see it with “docker images”

I tag it with docker docker tag docker-cs0/mybusybox

and then confrim the tag with docker images but I see TAG is set to “latest” is this right ???

user@docker-cs1:~$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

docker-cs0/mybusybox latest 8c2e06607696 4 months ago 2.433 MB

now i attempt to push this to my new DTR with

user@docker-cs1:~$ docker push docker-cs0/mybusybox
The push refers to a repository [docker-cs0/mybusybox] (len: 1)
8c2e06607696: Image push failed

Please login prior to push:
Username:

I login with my DTR login “admin”

and I get “Forbidden username”

Please login prior to push:
Username: admin
Password:
Email: 2@w.com
FATA[0011] Error response from daemon: Registration: "Forbidden username"
user@docker-cs1:~$


(Jeff Anderson) #2

As far as the push issue, you have to tag your images with the fully qualified domain name of the registry in order to push to that registry:

docker push docker-cs0.int.bork.com/mybusybox

As far as the forbidden username, that’s happening because your push is going to the public hub, and admin is a username that the public hub doesn’t allow.

/Jeff


(Ralph Kincade) #3

perfect this is the exact steps I used

  1. “export DOMAIN_NAME=docker-cs0.int.bork.com” ( this is my DTR)

2.docker login $DOMAIN_NAME

  1. username is “admin” this can be seen in the GUI in the DTR at
    docker-cs0.int.bork.com under 'auth"

  2. “docker run ghost” this pulls down an image from docker hub

5.ctr c to shut off ghost

  1. “docker images” to get the ghost ID 85c3e5ecdf68

7.docker tag 85c3e5ecdf68 docker-cs0.int.bork.com/myghost

  1. run “docker images” to ensure it is properly tagged look under
    "repository" ( not images) ti see the new tagged name “
    docker-cs0.int.bork.com/myghost”’

  2. push the image with the command “docker push
    docker-cs0.int.bork.com/myghost

THANKS!!!