`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.
More on Registry, pull and push errors
`Error response from daemon: pull access denied for X, repository does not exist or may require 'docker login'`Intermediate`manifest for myapp:1.2 not found: manifest unknown: manifest unknown`Beginner`no matching manifest for linux/arm64/v8 in the manifest list entries`Intermediate`x509: certificate signed by unknown authority` on `docker pull` from a private registry.Intermediate`http: server gave HTTP response to HTTPS client`Beginner`unauthorized: authentication required` on push to GitHub Container Registry.Intermediate