- 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
- 樂學(xué)Windows操作系統(tǒng)
- Persistence in PHP with the Doctrine ORM
- Haskell Financial Data Modeling and Predictive Analytics
- 操作系統(tǒng)基礎(chǔ)與實(shí)踐:基于openEuler平臺
- Ubuntu Linux操作系統(tǒng)
- Alfresco 4 Enterprise Content Management Implementation
- VMware NSX Cookbook
- 跟老男孩學(xué)Linux運(yùn)維:Shell編程實(shí)戰(zhàn)
- Windows 7實(shí)戰(zhàn)從入門到精通
- 精解Windows 10
- 鴻蒙HarmonyOS手機(jī)應(yīng)用開發(fā)實(shí)戰(zhàn)
- Linux集群之美
- Linux從入門到精通(視頻教學(xué)版)
- Learn OpenShift
- Mastering Eclipse Plug-in Development