Interview Prep/Docker/Registry, pull and push errors

`Error response from daemon: error parsing HTTP 404 response body` when pulling from a mirror.

AdvancedTroubleshootingRegistry, pull and push errors
Answer

Likely causes → Mirror/proxy doesn't implement the registry v2 API at that path, or returns an HTML error page.

Diagnose → curl -i https://mirror/v2/; look at response headers Docker-Distribution-Api-Version.

Fix → Correct the mirror URL/path, fix proxy rewriting, use the proper pull-through endpoint.

Prevent → Health-check the mirror with /v2/.

All Docker questions Roadmap: Docker & containers

More on Registry, pull and push errors