Registry
trust cert of registry without trusting it
Place the ca certificate inside /etc/docker/certs.d//etc/docker/certs.d/my-registry.example.com:5000/ca.crt
Get the cert in browser or with:
openssl s_client -showcerts -connect myregistry.de:443
ignore cert of registry
Edit /etc/docker/daemon.json and add insecure-registries.
{
"insecure-registries" : ["myregistry.de:443", "myregistry.de"]
}
Restart docker: sudo systemctl restart docker