Docker Community Forums

Share and learn in the Docker community.

DTR repository URL format


(Till Hofmann) #1

I’ve set up a DTR at my.company.com and I added a user user1 and a repository for that user rep1. What’s the URL I have to use to push images (let’s say myimage)? The DTR user guide suggests it should just be my.company.com/myimage, but that doesn’t really make sense. I tried different URLs:

  • my.company.com/user1/rep1/myimage
  • my.company.com/user1/myimage
  • my.company.com/rep1/myimage

But none of these work:

$ docker login my.company.com
...
Login Succeeded
$ docker push my.company.com/user1/rep1/myimage
The push refers to a repository [my.company.com/user1/rep1/myimage] (len: 1)
0c1424c81d6f: Preparing 
unauthorized: authentication required

I couldn’t find anything in the documentation about the URL. Which one of the URLs above is correct? Why am I getting an authentication required error?

Both on the server and the client:

$ docker --version
Docker version 1.9.1-cs3, build 28d463f

(Pdmahaf) #2

I am running into the same issue and would be curious what the resolution is (or was). Anyone?


(Till Hofmann) #3

The correct format is my.company.com/user1/myrepository. The repository must have the same name as the image you’re pushing, e.g. if you want to add an image my.company.com/user1/mongodb, then you need to create the repository mongodb for the user user1 first.

in short: repository = image name.