Saturday, October 8, 2022

[SOLVED] docker: invalid reference format with own registry with basic AU

Issue

I can see my docker registry by

curl -X GET "https://mylogin:[email protected]:myport/v2/_catalog"

or

curl -X GET "https://mylogin:[email protected]:myport/v2/myimage/manifests/latest"

but if I start container

sudo docker run -it https://mylogin:[email protected]:myport/myimage:latest

I receive error

docker: invalid reference format

Solution

https://mylogin:[email protected]:myport/myimage:latest

To login to your registry server, first run:

docker login myregistry.mydomain.io

Then pull the image with:

docker pull myregistry.mydomain.io:myport/myimage:latest

There should be no https:// or user credentials in the image name you pull.



Answered By - BMitch
Answer Checked By - Robin (WPSolving Admin)