docker / docker/buildx

Add `--twice` (or `--ntimes=N`) flag to test reproducibility

Open
#2,053 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/build help wanted kind/enhancement priority/p3 status/needs-maintainer-decision status/stale
Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

Description

The --twice (or --ntimes=N) flag will run a build twice, and bail if the digests do not match.
The second run will automatically run with --no-cache to disable layer caches (but keep cached mounts).

The SOURCE_DATE_EPOCH will be set to the time of the command execution if not explicitly set.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue describes new flags for running a build repeatedly and comparing digests, including cache and SOURCE_DATE_EPOCH behavior. No files, tests, or entry points are named; locate the build command's flag handling and existing reproducibility coverage first. Done means the requested flags implement the stated behavior and mismatched digests cause the build to bail.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.