Building best practices | Docker Docs
6
Public whispers
6
Contributors
2026-07-22 10:00:52
First whispered
Public whispers on this page
Text Highlight2026-07-22 16:24:52
Original Highlight Excerpt
"Each container should have only one concern."
Whisper Note
Yeah but that means 5 containers for one simple app sometimes, feels overkill.
Text Highlight2026-07-22 13:21:52
Original Highlight Excerpt
"Docker images are immutable."
Whisper Note
So basically my image is a time capsule? Guess I should update it more often.
Text Highlight2026-07-22 13:12:52
Original Highlight Excerpt
"Docker images are immutable."
Whisper Note
True, but people forget that and wonder why their container still has the old bug.
Text Highlight2026-07-22 10:18:52
Original Highlight Excerpt
"Multi-stage builds let you reduce the size of your final image"
Whisper Note
I always end up forgetting the build stage and copying the whole thing anyway lol.
Text Highlight2026-07-22 10:09:52
Original Highlight Excerpt
"Multi-stage builds let you reduce the size of your final image"
Whisper Note
But do you really need multi-stage for small apps? Might be overkill sometimes.
Text Highlight2026-07-22 10:00:52
Original Highlight Excerpt
"Multi-stage builds let you reduce the size of your final image"
Whisper Note
Honestly this changed my workflow, images went from 800MB to like 120MB.
Share this page's whispers
Short link
https://domwhisper.com/s/d80d9c4a35baEmbed snippet
<iframe src="https://domwhisper.com/embed/d80d9c4a35ba" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>See what people are discussing on docs.docker.com
Install DomWhisper to view live whispers as you browse, and join the discussion.
Get the extension