Interview Prep/Docker/Build failures and cache problems

`ERROR: failed to solve: failed to fetch anonymous token: ... 429 Too Many Requests`

IntermediateTroubleshootingBuild failures and cache problems
Answer

Likely causes → Docker Hub rate limit on anonymous pulls of base images.

Diagnose → curl -s -I -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest and read ratelimit-remaining.

Fix → docker login, use mirror/pull-through cache, switch to registry mirror images.

Prevent → Mirror base images internally.

All Docker questions Roadmap: Docker & containers

More on Build failures and cache problems