Interview Prep/Docker/Registry, pull and push errors

`failed to verify certificate: x509: certificate is valid for X, not registry.local`

IntermediateTroubleshootingRegistry, pull and push errors
Answer

Likely causes → Hostname used differs from the certificate SAN (IP address or alias).

Diagnose → openssl s_client -connect host:443 | openssl x509 -noout -text | grep -A1 'Alternative'.

Fix → Use the DNS name in the SAN, or re-issue the certificate with the correct SANs.

Prevent → Issue certs with all hostnames and IPs.

All Docker questions Roadmap: Docker & containers

More on Registry, pull and push errors