Lune

ICSE2021顶会

Shipwright: A Human-in-the-Loop System for Dockerfile Repair

Jordan Henkel, Denini Silva, Leopoldo Teixeira, Marcelo d'Amorim, Thomas W. Reps

摘要

Docker is a tool for lightweight OS-level virtualization. Docker images are created by performing a build, controlled by a source-level artifact called a Dockerfile. We studied Dockerfiles on GitHub, and-to our great surprise-found that over a quarter of the examined Dockerfiles failed to build (and thus to produce images). To address this problem, we propose SHIPWRIGHT, a human-in-the-loop system for finding repairs to broken Dockerfiles. SHIPWRIGHT uses a modified version of the BERT language model to embed build logs and to cluster broken Dockerfiles. Using these clusters and a search-based procedure, we were able to design 13 rules for making automated repairs to Dockerfiles. With the aid of SHIPWRIGHT, we submitted 45 pull requests (with a 42.2% acceptance rate) to GitHub projects with broken Dockerfiles. Furthermore, in a "time-travel" analysis of broken Dockerfiles that were later fixed, we found that SHIPWRIGHT proposed repairs that were equivalent to human-authored patches in 22.77% of the cases we studied. Finally, we compared our work with recent, state-of-the-art, static Dockerfile analyses, and found that, while static tools detected possible build-failure-inducing issues in 20.6–33.8% of the files we examined, SHIPWRIGHT was able to detect possible issues in 73.25% of the files and, additionally, provide automated repairs for 18.9% of the files.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Doctor: Optimizing Container Rebuild Efficiency by Instruction Re-orchestration 引用了 Dockerfile Flakiness: Characterization and Repair
  • Doctor: Optimizing Container Rebuild Efficiency by Instruction Re-orchestration 引用了 Empirical Study of the Docker Smells Impact on the Image Size
  • Dockerfile Flakiness: Characterization and Repair 引用了 Learning from, understanding, and supporting DevOps artifacts for docker
  • Dockerfile Flakiness: Characterization and Repair 引用了 Empirical Study of the Docker Smells Impact on the Image Size
  • Empirical Study of the Docker Smells Impact on the Image Size 引用了 Learning from, understanding, and supporting DevOps artifacts for docker
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingRosalia Tufano, Luca Pascarella, Gabriele BavotaICSE 2023 · 15 次引用
  2. Empirical Study of the Docker Smells Impact on the Image SizeThomas DurieuxICSE 2024 · 11 次引用
  3. On the Reproducibility of Software Defect DatasetsHao-Nan Zhu, Cindy Rubio-GonzálezICSE 2023 · 10 次引用
  4. Dockerfile Flakiness: Characterization and RepairTaha Shabani, Noor Nashid, Parsa Alian, Ali MesbahICSE 2025 · 2 次引用
  5. Doctor: Optimizing Container Rebuild Efficiency by Instruction Re-orchestrationZhiling Zhu, Tieming Chen, Chengwei Liu, Han Liu 等ISSTA 2025

它引用的 Paper2

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Learning from, understanding, and supporting DevOps artifacts for dockerJordan Henkel, Christian Bird, Shuvendu K. Lahiri, Thomas W. RepsICSE 2020 · 50 次引用

相关 Paper

  1. Automatic Dockerfile Generation with Large Language ModelsJun Lyu, He Zhang, Yusong Yuan, Lanxin Yang 等ICSE 2026
  2. Automating Dockerfile Refactoring to Multi-stage BuildsDongjin Chen, Wenhua Yang, Minxue Pan, Yu ZhouFSE 2026
  3. Towards Understanding Docker Build Faults in Practice: Symptoms, Root Causes, and Fix PatternsYiwen Wu, Yang Zhang, Tao Wang, Bo Ding 等FSE 2025 · 4 次引用
  4. Understanding and Predicting Docker Build Duration: An Empirical Study of Containerized Workflow of OSS ProjectsYiwen Wu, Yang Zhang, Kele Xu, Tao Wang 等ASE 2022 · 13 次引用
  5. Modus: a Datalog dialect for building container imagesChris Tomy, Tingmao Wang, Earl T. Barr, Sergey MechtaevFSE 2022 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖