Home > OS >  docker: invalid reference format with own registry with basic AU
docker: invalid reference format with own registry with basic AU

Time:09-29

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

CodePudding user response:

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.

  • Related