Building Docker Images
Applications that have components running as software containers are quite a new development and a great way of avoiding problems with underlying infrastructure. As we learned in the previous chapter, containers are processes that are executed on hosts using their kernels, isolated using features present in these kernels (in some cases, for years), and encapsulated in their own filesystems.
In this chapter, we will use container images, which are template-like objects, to create containers. Building these images is the first step to creating your own container-based applications. We will learn different procedures to create container images. These images will be our new application’s artifacts, and as such, we need to build them securely and be ready to run them on our laptops or computers, staging and production servers, or even cloud-provisioned infrastructures.
In this chapter, we will cover the following topics:
- Understanding how copy...