Creating and Managing Container Images
In the previous chapter, we covered containerization with Docker, where we installed Docker and ran our first container. We covered some core fundamentals, including Docker volumes, mounts, storage drivers, and logging drivers. We also covered Docker Compose as a declarative method of managing containers.
Now, we will discuss the core building blocks of containers: container images. Container images also fulfill a core principle of modern DevOps practices: config as code. Therefore, understanding container images, how they work, and how to build an image effectively is very important for a modern DevOps engineer.
In this chapter, we’re going to cover the following main topics:
- Docker architecture
- Understanding Docker images
- Understanding Dockerfiles, components, and directives
- Building and managing Docker images
- Flattening Docker images
- Optimizing containers with distroless images
- Understanding Docker...