Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you set up a pull-through cache for Docker Hub?

IntermediateProductionRegistries, Tagging & Supply Chain
Answer

Run registry:2 with proxy.remoteurl: https://registry-1.docker.io (plus credentials), or use ECR/Harbor proxy features, then point daemons at it:

{ "registry-mirrors": ["https://mirror.internal.example.com"] }

The registry-mirrors setting only applies to Docker Hub pulls; other registries need explicit prefixed names or containerd hosts.toml mirrors.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain