Docker Community Forums

Share and learn in the Docker community.

Issues accessing docker registry server externally

Hello!

I’ve followed this guide: https://docs.docker.com/registry/deploying/ 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 192.168.65.1:53: 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=0.0.0.0:443 \ -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.

Thanks!

Hi

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

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.