Docker base images - Ideas how to manage them on scale
summary
Company runs 50+ base images in four flavors so every build produces 200+ Docker base images, built with Make and Jenkins agents (Docker-in-Docker). Images use gosu to drop privileges, volumes to avoid baking caches, squashing to reduce runtime layers, Trivy for CVE scans and pytest + testinfra for automated container tests. Team enforces semantic versioning, a quarterly patch day plus monthly OS patch builds; full image test runs take ~30 minutes and result in few failures and under ten support tickets after updates for ~150 deploys/day across ~1,500 apps.
AI-written summary · about
chapters (16)
- 0:00Introduction and agenda
- 3:23Scale and challenges at Zupas
- 9:05Pain points with base images
- 12:17Challenging best practices
- 14:50Using gosu for unprivileged apps
- 15:56Semantic versioning approach
- 18:06Quarterly patch days
- 20:59Monthly automatic upgrades
- 23:11Build cache pitfalls
- 25:23Volumes for temporary files
- 27:10Layer reduction strategies
- 29:18Squashing layers with Docker
- 31:47Security scanning for images
- 33:12Testing Docker images
- 37:12Adapting best practices
- 42:21Summary and Q&A
