8: Containerizing an app
Docker makes it easy to package applications as images and run them as containers. We call this process containerization, and this chapter will walk you through the entire process.
I’ve divided the chapter as follows:
- Containerizing an app – The TLDR
- Containerize a single-container app
- Moving to production with multi-stage-builds
- Buildx, BuildKit, drivers, and Build Cloud
- Multi-architecture builds
- A few good practices
Containerizing an app – The TLDR
Docker aims to make it easy to build, ship, and run applications. We call this containerization and the process looks like this:
- Write your applications and create the list of dependencies
- Create a Dockerfile that tells Docker how to build and run the app
- Build the app ...
Get Docker Deep Dive - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.