Interview Prep/Docker/Registry, pull and push errors

`http: server gave HTTP response to HTTPS client`

BeginnerTroubleshootingRegistry, pull and push errors
Answer

Likely causes → Registry serves plain HTTP (e.g. local registry:2) but the client tries HTTPS.

Diagnose → curl -v http://host:5000/v2/.

Fix → Enable TLS on the registry (preferred), or add to insecure-registries in daemon.json and restart (non-prod only).

Prevent → Always terminate TLS at the registry.

All Docker questions Roadmap: Docker & containers

More on Registry, pull and push errors