containerization
Packaging an application with everything it needs to run into a container image.
In more detail
The image holds the code, runtime and libraries, so the application runs the same way everywhere. Good containerization keeps images small and free of build tools.
Example
Naive containerization copies the whole repository and dev tools into a gigabyte-sized image; multi-stage builds cut it to the compiled output.Related terms
- container — A running program that has been fenced off from the rest of the computer so it only sees its own files, network and processes.
- multi-stage build — A Dockerfile with several FROM stages, where later stages copy only what they need from earlier ones.
- Dockerfile — A text file of instructions, such as FROM, COPY and RUN, that tells Docker how to build an image.
Taught in
- Health Probes & Graceful Shutdown: Kubernetes Lifecycles — Production Full-Stack Engineering
- Containerization Architecture: Multi-Stage Dockerfiles — Production Full-Stack Engineering
- Kubernetes Ingress, Routing & TLS Termination — Production Full-Stack Engineering