Docker and CI/CD · Senior · Question 13 of 75
What helps make a Docker build reproducible?
- 1Running the build twice and keeping the smaller image
- 2Always using
latestso every build uses the same tag - ✓Correct answer: Pinned base digests, lockfiles and fixed timestamps
Explanation
Variable inputs (moving tags, unpinned packages, file timestamps) change the output. SOURCE_DATE_EPOCH helps tools produce identical layers.