Skip to content

Docker

Docker packages applications and dependencies into containers — portable, isolated environments that run consistently from laptop to production.

Source

Why Docker

BenefitDetail
ConsistencySame image in dev, CI, and prod
IsolationProcesses share the host kernel, not a full VM
SpeedLightweight starts vs hypervisor VMs
EcosystemDockerfile, Compose, Hub registries

Core concepts

  • Image — read-only template (layers from Dockerfile instructions)
  • Container — running instance of an image
  • Registry — image storage (Docker Hub or private)
  • Compose — multi-container apps via docker-compose.yml

Quick example

bash
docker run -it --rm ubuntu /bin/bash

In this section

Curated technical notes — open source on GitHub