Docker Image Journey - How to Shrink a Docker Image
summary
The talk explains how a team reduced a Docker image from ~100 MB to ~5 MB by using multi-stage builds to produce statically linked binaries and then publishing from scratch (minimal) base images. It covers the concrete trade-offs: much faster pulls/pushes and a smaller attack surface because runtimes and shells are removed, but increased build complexity, necessary CI changes, image scanning, documented rebuild steps, and extra operational tooling to support debugging.
AI-written summary · about
chapters (10)
- 0:00Docker image optimization
- 4:06Shrink goals
- 7:13Multi-stage builds
- 10:08100MB to 5MB
- 13:57Scratch vs base images
- 15:53Live build & deploy
- 18:33Debugging tooling
- 20:39Security trade-offs
- 23:50Results impact
- 26:54Conclusion
related talks
14mSmall Containers? or Small Images?
29mDockerfile: the best practices
16mSimplifying the Journey of Your Containerized Application from Dev to Production
26mUnravelling the Magical Act of DockerSlim Minifying Container Images
24mSpeeding up Your Docker Image Build
41mDocker Best-Practice and Dockerfile Optimization
40mBuilding Smaller Container Images
25mBuilding Docker Images Without Docker
