Docker
This folder has no README. Everything inside it is listed below.
Notes
- Docker and Docker Compose Command Guide 3 Docker is a platform for developing, shipping, and running applications in containers.
- Docker image vs container 4 An image is a read-only stack of filesystem layers plus a config (command, environment, user, ports), identified by a content hash.
- Purpose of Containerization 3 Containerization is a lightweight form of virtualization that involves encapsulating an application and its dependencies into a single package called a…
- Docker image layers and build caching 4 An image is a stack of read-only layers.
- Docker Compose 4 Compose defines a multi-container application in one file (compose.yaml): services, networks, volumes, and how they start.
- Scaling containers 6 Scaling out is the easy half. The hard half is that horizontal scaling assumes a stateless container, and most applications are not one until you make them so.
- Docker network modes 5 Each container gets its own network namespace and a virtual interface on a Linux bridge.
- Multi-stage builds 5 One Dockerfile, several FROM lines. Each FROM starts a new stage with its own filesystem; the final stage becomes the image, and everything else is discarded.
- Volumes, bind mounts and tmpfs 5 A container's filesystem dies with the container.
- ADD vs COPY 2 COPY copies files from the build context (or from another stage or image) into the image, and does nothing else.
- Multi-arch builds 4 One image tag, several CPU architectures: python:3.14-slim runs on an Intel laptop, an Apple-silicon Mac, an AWS Graviton instance and a Raspberry Pi,…