Hello!
I’ve followed this guide: Registry | Docker Docs 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!