🐳

Docker

Images, containers, Dockerfiles, networking, volumes, Compose, security & production best practices.

Practice interview questions on this topic →
1

Docker Architecture, Engine, Daemon, Client & Registry

beginner

Docker is a client-server platform that builds, ships, and runs applications inside isolated Linux (or Windows) processes called containers, using OS-level virtualization instead of full hardware virt

2

Images, Layers, Caching & Container Lifecycle

beginner

A Docker image is a read-only, layered filesystem template plus metadata (entrypoint, env vars, exposed ports, etc.). A container is a running (or stopped) instance of an image: the image's layers mou

3

Dockerfile Instructions & Multi-Stage Builds

beginnerPro

A Dockerfile is a declarative, line-by-line recipe for building an image. Each instruction either creates a new layer (FROM, RUN, COPY, ADD) or sets image metadata that doesn't add a filesystem layer

4

Storage: Volumes, Bind Mounts & tmpfs

beginnerPro

Container filesystems are ephemeral by design — the writable layer disappears with the container. Docker provides three mechanisms for data that needs to outlive a container or be shared with the host

5

Docker Networking: Bridge, Host, Overlay, DNS & Port Mapping

beginnerPro

Docker networking is implemented by libnetwork using a pluggable driver model. The four drivers you must know cold for interviews are: bridge (default, single-host container-to-container networking),

6

Docker Compose: Services, Networks, Volumes, Scaling & Health Checks

intermediatePro

Docker Compose is a declarative tool for defining and running multi-container applications from a single YAML file (compose.yaml). It is the standard local-development and small-deployment tool for an

7

Container Security: Non-Root, Secrets, Image Scanning & Distroless

intermediatePro

Container security is layered defense-in-depth: who the process runs as inside the container (non-root), how secrets reach the container without being baked into the image or visible in plain env vars

8

Monitoring: Logs, Metrics, Prometheus & Grafana

intermediatePro

Observability for containerized applications rests on three pillars: logs (discrete event records), metrics (numeric time-series data — request counts, latencies, resource usage), and traces (request

9

Spring Boot Integration: Dockerizing, PostgreSQL, Redis, Kafka & Microservices

intermediatePro

This chapter applies everything from Chapters 1-8 to the stack most readers actually run day to day: a Spring Boot service backed by PostgreSQL, Redis, and Kafka, deployed as containers and composed t

10

CI/CD with Docker: Jenkins, GitHub Actions & GitLab CI

advancedPro

CI/CD pipelines automate the journey from source code commit to a running container in production: build the image, test it, scan it, push it to a registry, and deploy it. Docker is the packaging form

11

Kubernetes Fundamentals: Docker vs K8s, Runtime, Pods & Deployments

advancedPro

Kubernetes is a container orchestration platform: it schedules containers onto a cluster of machines, keeps the desired number of replicas running, handles networking and service discovery across node

12

Performance Optimization: Layer Caching, Multi-Stage Builds & Alpine

advancedPro

This chapter consolidates and deepens the performance-related threads from earlier chapters (Chapter 2's layer caching, Chapter 3's multi-stage builds) into a single, interview-focused treatment, and

13

Production Best Practices: Logging, Monitoring, Scaling, HA & Disaster Recovery

advancedPro

This chapter synthesizes everything from Chapters 1-12 into a single production-readiness lens. It does not introduce a new Docker feature; instead it answers the question every architect and senior e

14

Docker Registry & Image Distribution: Tagging, Versioning, Push & Pull

intermediatePro

A registry is the piece of Docker's architecture that turns a locally-built image into something every environment — CI, staging, production — can pull the exact same bytes of. This chapter is that distribution layer: Docker Hub, running your own private registry, and the tagging/versioning conventions that keep it usable at scale.

15

Containerized System Design: Microservices, API Gateway, Event-Driven & Deployment Architectures

advancedPro

Every earlier chapter covered one container-level mechanism correctly in isolation. This chapter is the system-design layer above all of them — how containerized services actually get composed into an architecture, and the deployment-rollout strategies that decide how a new version reaches production traffic.