title: how to access docker registry v2 with curl?
body: <p>When I directly run <code>docker run -d -p 5000:5000 --restart=always --name registry registry:2</code>, I could access registry with <code>curl localhost:5000/v2/_catalog</code>. But after I secured registry using TLS reference to <a href="https://docs.docker.com/registry/deploying/" rel="noreferrer">https://docs.docker.com/registry/deploying/</a> . The command like <code>curl localhost:5000/v2/_catalog</code> could not be use. So how could I access registry with curl? Should some options be added? Like if I want to use docker remote api, I could use <code>curl --insecure --cert ~/cert.pem --key ~/key.pem https://$host:2376/_ping</code>.</p>