TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dockerfiles look deterministic, but they are not

2 pointsby janjongboomabout 1 year ago

1 comment

janjongboomabout 1 year ago
Apologies for editorializing the title a bit :-)<p>Reading through the comments in <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39720007">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39720007</a> I saw a common misconception pop up again: Dockerfiles are not deterministic. But they _look_ like they are, and even are for a while: Build a Dockerfile on your local machine; then build it again =&gt; most likely exactly the same container. Stuff starts to break down quickly though; so I did this writeup some time ago that should be informative for the wider community.