Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you mirror public images into a private registry in bulk?

IntermediateProductionRegistries, Tagging & Supply Chain
Answer

Define a list in Git and run a scheduled job with skopeo sync or crane copy (or Harbor replication rules), scanning and signing before marking approved.

skopeo sync --src docker --dest docker docker.io/library/nginx reg.example.com/mirror/

Then policy-restrict clusters to reg.example.com/mirror/*.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain