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.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Why not just using nix build system for that, it can create docker images for years now with a great speed.
Is there a plan to support building docker images?
When I've used buildah and kaniko, I still handed them a Dockerfile.
Docker images arenβt built in a reproducible way unless you use something like Nix to create them
Looks like a replacement for Dockerfiles.
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
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...
Docker does not give you a reproducible builds - it 100% depends on a host platform.
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
That will surely help in my heterogenous servers environment with multiple OSes ... No more need to use Docker as a builder !