講演抄録/キーワード |
講演名 |
2022-07-29 16:25
コンテナイメージの解析に基づくビルド再現可能性の高いコンテナ定義ファイルの復元 ○木下彩香・小林隆志(東工大) SS2022-16 KBSE2022-26 |
抄録 |
(和) |
多様な環境下でも安定してソフトウェアが動作するよう配布するためには,実行に必要な全ての環境を正確に共有する手段が必要となる.Dockerに代表されるコンテナ仮想化技術は,実行環境をコンテナイメージとして容易に構築・共有できるプラットフォームとして活用されている.コンテナイメージを用いることで,実行環境の高い再現性が提供されるが,イメージの定義であるDockerfileからイメージへビルドする際の再現性については議論されていない.本研究では,イメージからビルド再現性の高いDockerfileを復元する手法を提案する.本稿では,ビルドの再現度合いを測る評価指標を提案し,GitHub 上で共有されているDockerfile では再現性が十分でないことを明らかにする.また,Docker の提供機能だけではイメージから Dockerfile を復元することは困難であることを示し,イメージの解析をして構築に必要な具体的な依存関係を取得することで再現性の高いDockerfileを作成する手法を提案する.評価実験を通して,提案手法を用いることでイメージへのビルドの再現性の高いDockerfileの作成が可能であることを示す. |
(英) |
Since the software depends on external libraries and other software, it is necessary to define an execution environment guaranteed to work when distributing it. Container Virtualization, represented by Docker, is used to provide sharable execution environments to reduce the effort to ensure that the software works on various environments. Many OSS projects include Dockerfile which is a definition file for a container image as a required execution environment. Using container images provides high reproducibility of the environment, however, reproducibility of building an image from Dockerfile, which is a definition file for an image, has not been discussed yet. In this report, we propose a method to recover a highly build-reproducible Dockerfile from a container image. We define a metric to measure build reproducibility, and show that Dockerfiles shared on GitHub are insufficient for reproducibility. We also show that technical challenges to recover a Dockerfile from an image using Docker features, and propose a method to generate a highly build-reproducible Dockerfile by analyzing image layers and extracting specific necessary dependencies for building an environment. Through evaluation experiments, we show that the proposed method can generate a Dockerfile with high reproducibility of container image construction. |
キーワード |
(和) |
ビルド再現性 / Dockerfile / リバースエンジニアリング / コンテナ仮想化技術 / リポジトリマイニング / Dockerイメージのレイヤー解析 / / |
(英) |
Build Reproducibility / Dockerfile / Reverse Engineering / Container Virtualization / Repository Mining / Analyzing Docker Image Layers / / |
文献情報 |
信学技報, vol. 122, no. 138, SS2022-16, pp. 91-96, 2022年7月. |
資料番号 |
SS2022-16 |
発行日 |
2022-07-21 (SS, KBSE) |
ISSN |
Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2022-16 KBSE2022-26 |
|