I’m evaluating DTR and have followed the automatic installation.
What I’ve done
I’ve set the domain name (using 192.168.50.10 the private IP I’m using … not sure if this is allowed or if I need a ‘real’ domain?).
I’ve applied the CS Docker licence, created two users (admin and drew who is not admin), generated SSL Certs as per https://docs.docker.com/docker-trusted-registry/configure/config-security/ and created a repo via the UI (drew/foo)
What I’m trying to do, a push
I’m able to login to DTR via the command line (following instructions here https://docs.docker.com/docker-trusted-registry/userguide/)
[vagrant@docker1 ~]$ sudo docker login 192.168.50.10 Username (drew): Password: WARNING: login credentials saved in /root/.docker/config.json Login Succeeded
Then I try to do a push but recieve the error ‘unauthorized: authentication required’.
[vagrant@docker1 ~]$ sudo docker push 192.168.50.10/drew/foo/hello-drew:latest The push refers to a repository [192.168.50.10/drew/foo/hello-drew] 9523b66f5278: Preparing unauthorized: authentication required
I’ve tried pulling existing images, and even creating my own. All have the same result. Here is an example of my own image.
[vagrant@docker1 ~]$ touch hello [vagrant@docker1 ~]$ cat Dockerfile FROM scratch COPY hello / CMD ["/hello"] [vagrant@docker1 ~]$ sudo docker build -t 192.168.50.10/drew/foo/hello-drew . Sending build context to Docker daemon 178.2 kB Step 1 : FROM scratch ---> Step 2 : COPY hello / ---> Using cache ---> 061442e33417 Step 3 : CMD /hello ---> Using cache ---> 2527d9132ebc Successfully built 2527d9132ebc
After reading the other posts (and making sure I’m not using an admin account, that the repo exists, that I’m using sudo for the push commands) I’m not sure why I’m getting the authentication message.
Are the specific logs or debug that I could use, or something different I need to try to get it to work?