Abstract
Docker has become a key paradigm for application deployment in cloud computing. A running Docker instance need to access its corresponding docker image for searching the required file from time to time. The more layers a docker image has, the longer the search time is. The number of image layers has significant impact on the efficiency of the application. However, reducing the number of image layers via layer merging will reduce the shareability of image layers and increase the storage occupation. To address the above issue, we exploit image reconfiguration to achieve a trade-off between the operation efficiency and storage occupation. We formulate the image reconstruction problem as a knapsack problem, and design a dynamic programming-based offline image reconstruction algorithm named DPOIRA to solve it. We conduct experiments on the busybox and crate, and the experiment results show the effectiveness of our algorithm.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Docker. https://www.docker.com/. Accessed 4 Oct 2022
Anwar, A., Rupprecht, L., Skourtis, D., Tarasov, V.: Challenges in storing docker images. Login Usenix Mag. 44(3), 1–6 (2019)
Use the AUFS storage driver. https://docs.docker.com/storage/storagedriver/aufs-driver/. Accessed 4 Oct 2022
Use the OverlayFS storage driver. https://docs.docker.com/storage/storagedriver/o-verlayfs-driver/. Accessed 4 Oct 2022
About storage drivers. https://docs.docker.com/storage/storagedriver/. Accessed 4 Oct 2022
Rachmawati, D., Tarigan, J.T., Ginting, A.B.C.: A comparative study of message digest 5 (MD5) and SHA256 algorithm. In: Journal of Physics: Conference Series, vol. 978, p. 012116. IOP Publishing (2018)
Li, S., Zhou, A., Ma, X., Xu, M., Wang, S.: Commutativity-guaranteed docker image reconstruction towards effective layer sharing. In: Proceedings of the ACM Web Conference 2022 (WWW 2022), 25–29 April 2022, Virtual Event, Lyon, France. ACM, New York, NY, USA, p. 9 (2022). https://doi.org/10.1145/3485447.3512154
Anwar, A., et al.: Improving docker registry design based on production workload analysis. In: Proceedings of the 16th USENIX Conference on File and Storage Technologies (FAST) (2018)
Li, Y., An, B., Ma, J., Cao, D.: Comparison between chunk-based and layer-based container image storage approaches: an empirical study. In: 2019 IEEE International Conference on Service-Oriented System Engineering (SOSE), 197–1975. IEEE (2019)
Skourtis, D., Rupprecht, L., Tarasov, V., Megiddo, N.: Carving perfect layers out of docker images. In: 11th USENIX Workshop on Hot Topics in Cloud Computing (HotCloud 2019) (2019)
Acknowledgements
This work is supported by the Fundamental Research Funds for the Central Universities.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Jiang, Q. (2023). Improving Performance of Docker Instance via Image Reconstruction. In: Hsu, CH., Xu, M., Cao, H., Baghban, H., Shawkat Ali, A.B.M. (eds) Big Data Intelligence and Computing. DataCom 2022. Lecture Notes in Computer Science, vol 13864. Springer, Singapore. https://doi.org/10.1007/978-981-99-2233-8_37
Download citation
DOI: https://doi.org/10.1007/978-981-99-2233-8_37
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-2232-1
Online ISBN: 978-981-99-2233-8
eBook Packages: Computer ScienceComputer Science (R0)