- Troubleshooting Docker
- Vaibhav Kohli Rajdeep Dua John Wooten
- 275字
- 2021-07-09 18:45:03
Chapter 3. Building Base and Layered Images
In this chapter, we will learn about building base and layered images for production-ready containers. As we saw, Docker containers provide us with ideal environments in which we can build, test, automate, and deploy. The reproductive nature of these exact environments affords a higher degree of efficacy and confidence that currently available script-based deployment systems cannot readily duplicate. The images a developer locally builds, tests, and debugs can then be pushed directly into staging and production environments as the test environment is nearly a mirror image under which the application code runs.
Images are the literal foundational component of containers, defining what flavor of Linux to deploy and what default tools to include and make available to the code running inside the container. Image building is, therefore, one of the most critical tasks in the application containerization life cycle; correctly building your images is critical for effective, repeatable, and secure functionality of containerized applications.
A container image consists of a set of runtime variables for your application container. Ideally, container images should be as minimal as possible, providing the required functionalities only, as this helps in efficient handling of the container image, significantly reducing the time to upload and download the image from the registry and having a minimal footprint on the host.
Our focus, intent, and direction is in building, debugging, and automating images for your Docker containers.
We will cover the following topics in this chapter:
- Building container images
- Building base images from scratch
- Official base images from Docker registry
- Building layered images from Dockerfiles
- Debugging images through testing
- Automated image building with testing
- Linux內(nèi)核完全注釋(20周年版·第2版)
- Arch Linux Environment Setup How-to
- 蘋果電腦玩全攻略 OS X 10.8 Mountain Lion
- Windows Server 2012 Hyper-V Cookbook
- SharePoint 2013 WCM Advanced Cookbook
- 構(gòu)建可擴(kuò)展分布式系統(tǒng):方法與實(shí)踐
- SharePoint 2013 應(yīng)用開發(fā)實(shí)戰(zhàn)
- 深入Linux內(nèi)核架構(gòu)與底層原理(第2版)
- Social Data Visualization with HTML5 and JavaScript
- 寫給架構(gòu)師的Linux實(shí)踐:設(shè)計(jì)并實(shí)現(xiàn)基于Linux的IT解決方案
- Linux網(wǎng)絡(luò)配置與安全管理
- 從實(shí)踐中學(xué)習(xí)Windows滲透測試
- Ubuntu Linux操作系統(tǒng)實(shí)用教程
- Linux集群之美
- Agile IT Security Implementation Methodology