All jobs / DevOps / SRE / cloud / Containers
DevOps / SRE / cloud interview question · 3–5 years
The container registry has grown to terabytes, pulls from the cluster are slow, and a public registry started rate-limiting your nodes.
What do you change?
The strongest answer
Retention that garbage-collects untagged and old images but keeps anything deployed, immutable tags, and a pull-through cache or mirror near the cluster so production never pulls straight from a public registry
Why it works
Right — retention keyed to what is deployed, immutability so a tag cannot change under you, and a local cache for speed and independence.
What a good answer covers
- Retain by what is deployed.
- Immutable tags.
- Garbage-collect the rest.
- Mirror or cache near the cluster.
Answers that fall short
- Close, but not the strongest: Delete everything older than ninety days and move on
Age alone deletes images that are still running, and it does nothing about pull speed or public rate limits. - Weak: Buy a bigger registry and a faster link; storage is cheap
Capacity without a policy buys time; the landfill and the external dependency stay. - Red flag: Point the nodes at a random public mirror someone posted so the rate limit goes away
Pulling production images from an unknown mirror is a supply-chain attack you set up yourself.
Who gets asked this
More Containers questions
- What is the difference between an image and a container?
- A Dockerfile says `FROM node:latest`. What is wrong?
- A container can take all the memory on the node. What do you set?
- In the team’s Docker Compose stack, Postgres loses all its data every time the container is recreated. Why…
- CI rebuilds a 12-minute Docker image on every commit. What do you change first?
- A production image is 1.8 GB and includes a compiler. What do you do?
- The app container connects to `localhost:5432` and gets connection refused, though the database container is…
- The Dockerfile has no USER line, so the app runs as root. Does that matter inside a container?