Dockerfile Flakiness: Characterization and Repair
Taha Shabani, Noor Nashid, Parsa Alian, Ali Mesbah

TL;DR
This paper investigates the unpredictable nature of Dockerfile build failures caused by external factors, analyzes their prevalence, categorizes causes, and introduces FLAKIDOCK, a novel repair framework leveraging LLMs that significantly improves repair accuracy.
Contribution
It provides the first comprehensive study of Dockerfile flakiness, proposes a taxonomy of causes, and introduces FLAKIDOCK, a new repair framework utilizing static/dynamic analysis and LLMs.
Findings
Approximately 10% of Dockerized projects exhibit flakiness.
FLAKIDOCK achieves 73.55% repair accuracy, outperforming existing tools.
The taxonomy categorizes common flakiness causes like dependency errors and server issues.
Abstract
Dockerfile flakiness-unpredictable temporal build failures caused by external dependencies and evolving environments-undermines deployment reliability and increases debugging overhead. Unlike traditional Dockerfile issues, flakiness occurs without modifications to the Dockerfile itself, complicating its resolution. In this work, we present the first comprehensive study of Dockerfile flakiness, featuring a nine-month analysis of 8,132 Dockerized projects, revealing that around 10% exhibit flaky behavior. We propose a taxonomy categorizing common flakiness causes, including dependency errors and server connectivity issues. Existing tools fail to effectively address these challenges due to their reliance on pre-defined rules and limited generalizability. To overcome these limitations, we introduce FLAKIDOCK, a novel repair framework combining static and dynamic analysis, similarity…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvancements in Photolithography Techniques · Semiconductor materials and devices · Integrated Circuits and Semiconductor Failure Analysis
