Docker Community Forums

Share and learn in the Docker community.

Remote docker registry connection fails with http error 404 19

I’m attempting to setup a registry for a development team that can be accessed remotely using the code here:

using:

docker run -d
–restart=always
–name registry
-v “$(pwd)”/certs:/certs
-e REGISTRY_HTTP_ADDR=0.0.0.0:443
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key
-p 443:443
registry:2

The certs where created with mkcert and the container runs successfully. I can tag, pull and push images locally, but when I attempt to connect from a remote server, the container logs report the following:

… “HEAD /_ping HTTP/1.1” 404 19 “” “Docker-Client/20.10.8 (linux)”
…“GET /_ping HTTP/1.1” 404 19 “” “Docker-Client/20.10.8 (linux)”
…“GET /v1.24/info HTTP/1.1” 404 19 “” “Go-http-client/1.1”…

I’m not sure how to troubleshoot.