Docker Image Optimization
The cluster discusses techniques for reducing Docker image sizes, such as using layered caching, lightweight base images like Alpine or Distroless, and multi-stage builds, while debating trade-offs in maintenance, performance, and practicality.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Docker images are layered, so this isn't a problem in most cases.
What has this got to do with making Docker images smaller?
Those sound like issues with your Docker usage - there are options to keep base image quite streamlined (e.g. alpine or distroless images).
That's weird won't these all be docker layers somewhere in the guts? So it's already compressed.
Maybe not on their machine, but for Docker images that will be pulled a thousand times, yes.
What do you find suboptimal about most Docker images? Just the size, or something else?
Would it not be easier to just pack into different base images? Docker is very efficient with reusing these layers.
ugh, i would hate to maintain this dockerfile. i actually dont mind a 34MB docker image vs a 17MB image like this
Short read on the current ways folks seem to be going about reducing their Docker image sizes
You are just wasting cycles and memory. Don't use docker if you care about performance.