Reproducible Docker Builds

Comments discuss challenges with reproducibility in Docker image builds and propose alternatives like Nix, Buildah, Kaniko, Podman, and multi-stage builds to create consistent, efficient container images without traditional Dockerfiles.

πŸ“‰ Falling 0.4x DevOps & Infrastructure
4,490
Comments
17
Years Active
5
Top Authors
#6011
Topic ID

Activity Over Time

2010
1
2011
5
2012
2
2013
77
2014
185
2015
150
2016
246
2017
226
2018
348
2019
385
2020
470
2021
402
2022
525
2023
572
2024
414
2025
449
2026
33

Keywords

input.data FROM DAG COPY CI BuildKit DVC ID SCRATCH RUN docker image build bazel container images reproducible builds docker image cloud

Sample Comments

neeh0 β€’ May 24, 2023 β€’ View on HN

Why not just using nix build system for that, it can create docker images for years now with a great speed.

IanCal β€’ Feb 9, 2014 β€’ View on HN

Is there a plan to support building docker images?

yjftsjthsd-h β€’ Apr 9, 2025 β€’ View on HN

When I've used buildah and kaniko, I still handed them a Dockerfile.

kvz β€’ Mar 16, 2021 β€’ View on HN

Docker images aren’t built in a reproducible way unless you use something like Nix to create them

atarian β€’ Apr 22, 2020 β€’ View on HN

Looks like a replacement for Dockerfiles.

nonameiguess β€’ Aug 31, 2023 β€’ View on HN

It's at least possible in a limited sense. I'm not going to hold it up as a paragon of a solution, but cloud-init lets you just list packages and translates them automatically into a command line for most popular Linux package managers, even pacman.But I strongly agree with what I think is your basic gist here, which is that too many people wish Docker was something it fundamentally isn't. It's ultimate intent is as a packaging system more than a build system. Yes, it buil

pulse7 β€’ Jul 8, 2019 β€’ View on HN

BuildKit is an experimental replacement for docker build from Docker Ltd. When building it fetches some metafiles from the internet. So you can not use it in isolated environments...

notyourday β€’ Feb 1, 2020 β€’ View on HN

Docker does not give you a reproducible builds - it 100% depends on a host platform.

PeterHK β€’ Feb 27, 2019 β€’ View on HN

if you have issue with having updated packages and or dont like unneeded stuff in your containerbuild. use nixos `dockerTools.buildImage` (builder needs to be nixos machine but that should not be a problem) also i like `skopeo` to upload the image

hamdouni β€’ Apr 9, 2023 β€’ View on HN

That will surely help in my heterogenous servers environment with multiple OSes ... No more need to use Docker as a builder !