Docker Community Forums

Share and learn in the Docker community.

Issues accessing docker registry server externally


I’ve followed this guide: to set up repositories, I did one locally just fine and then moved on to fixing an external one.

Ssl is functioning properly, hosting a https website works perfectly fine. But can’t for some reason get the external docker registry server to work. Trying to access, doing something like docker pull myregistry.<mydomain>/<imagename> simply says dial tcp: lookup myregistry.<mydomain>/<imagename> on no such host. And yes, I’ve turned off the https webserver before trying to host the registry server.

Command to start registry:
docker run -d \ --restart=always \ --name myregistry \ -v "$(pwd)"/certs:/certs \ -e REGISTRY_HTTP_ADDR= \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/<mydomain>.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/<mydomain>.key \ -p 443:443 \ registry:2

OS: Raspbian GNU/Linux 10
Docker: Docker version 19.03.5, build 633a0ea

This is just a hobby project to practice CI/CD so no time constraints, but any help is very much appreciated.



This seems more like a DNS issue, since it says “no such host”, comming from, i guess is your router? (

You sure you setup the records in dns correctly? or waited long enough for the dns to be pushed out :slight_smile:

The format of pulls is typically

docker pull registry<:port>/namespace/image:tag

So I suspect the format/syntax in your pull command, since you are using an external//non-default registry.