Fixing Dockerfile Smells: An Empirical Study
Giovanni Rosa, Simone Scalabrino, Rocco Oliveto

TL;DR
This study investigates the prevalence and fixability of Dockerfile smells in open-source projects, evaluating developer willingness to accept automated fixes and identifying which smells are most addressed.
Contribution
It provides empirical insights into Dockerfile smell fixing behaviors and assesses the potential for automated tools to support developers in improving Dockerfile quality.
Findings
Dockerfile smells are frequently fixed in open-source projects
Developers show willingness to accept automated fixes for Dockerfile smells
Certain Dockerfile smells are more persistent and less likely to be fixed
Abstract
Background. Containerization technologies are widely adopted in the DevOps workflow. The most commonly used one is Docker, which requires developers to define a specification file (Dockerfile) to build the image used for creating containers. There are several best practice rules for writing Dockerfiles, but the developers do not always follow them. Violations of such practices, known as Dockerfile smells, can negatively impact the reliability and the performance of Docker images. Previous studies showed that Dockerfile smells are widely diffused, and there is a lack of automatic tools that support developers in fixing them. However, it is still unclear what Dockerfile smells get fixed by developers and to what extent developers would be willing to fix smells in the first place. Objective. The aim of our exploratory study is twofold. First, we want to understand what Dockerfiles smells…
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
TopicsSoftware Engineering Research · Scientific Computing and Data Management · Software System Performance and Reliability
