Skip to content
MtrXTools

Error response from daemon: Get "https://registry.example.com/v2/": x509: certificate signed by unknown authority

Docker doesn't trust the registry's certificate

Seen in docker pull, docker push, docker login, Docker Desktop

The Docker daemon could not chain the registry's certificate to a CA it trusts.

Common causes

  • A private registry uses a certificate from an internal CA or a self-signed certificate.
  • A corporate proxy re-signs HTTPS traffic to Docker Hub or other registries.
  • The registry does not send its intermediate certificate.

How to fix it

  1. Trust the CA for that registry: place it at /etc/docker/certs.d/registry.example.com:5000/ca.crt (the port is part of the folder name if used).
  2. Or add the CA to the host trust store (update-ca-certificates) and restart Docker; on Docker Desktop, add it to the OS keychain or certificate store.
  3. Serve the full chain from the registry. Avoid insecure-registries, which disables verification.
Check the registry certificate chain

Got a different message? Paste it into the error explainer.

Related errors

All 31 Dev tools & SSH errors