Definition
What it is
Docker is not "containers". Containers are an OS-level primitive that predates it (chroot in 1979, FreeBSD jails in 2000, cgroups in 2006). Docker is the product that made containers usable by normal engineers: a CLI, a daemon, an image format, a registry, and a set of conventions that turned a kernel feature into a developer workflow.
Scope note. "Docker" is often used to mean three different things: Docker the company, Docker the platform (CLI + daemon + registry), and Docker the container format (which is now governed by the OCI). This entry covers the platform.
Why it matters
Before Docker, packaging a Python app for production meant documenting apt packages, Python versions, pip pins, env vars and system libraries in a wiki page that nobody read. After Docker, it meant writing a Dockerfile that was versioned, tested and reproduced the same way in CI and on any developer laptop.
Docker vs Podman vs containerd
Aspect | Docker | Podman | containerd |
|---|---|---|---|
Daemon required | Yes (dockerd) | No (daemonless) | Yes (containerd) |
Rootless by default | No (can be) | Yes | No |
Build tool |
|
| External (BuildKit) |
Compose support | Native | Yes (via podman-compose) | No |
Drop-in replacement | — | Yes ( | No |
Best for | Dev workflows, Docker Desktop | Security-conscious CI | Underlying runtime |
The Docker workflow
graph LR DF[Dockerfile] -->|docker build| IMG[Image] IMG -->|docker push| REG[Registry] REG -->|docker pull| IMG2[Image] IMG2 -->|docker run| C[Container] IMG -->|docker run| C style DF fill:#FFF3E0 style C fill:#E8F5E9
Timeline
2013 — Solomon Hykes demos Docker at PyCon US.
2014 — Docker 1.0 ships.
2015 — Docker donates the container format to the OCI.
2017 — Docker rebrands its open-source project as Moby.
2019 — Docker Enterprise sold to Mirantis.
2023 — Docker Desktop license changes (BSL for large companies).
2024 — Docker 27 ships; Podman 5 ships.
How to use Docker well
Docker that ages well
Multi-stage builds
Build in one stage, copy only the artifact into the final image. Saves hundreds of MB.
Non-root user
USER appuserin the final stage. Root containers are host-kernel risks.Pinned base images
FROM ubuntu:24.04@sha256:...instead ofFROM ubuntu:latest. Latest moves; digests do not.Small base images
alpineordistrolessfor the final stage. Smaller = faster pull, fewer CVEs.`.dockerignore`
Exclude
node_modules,.git,*.log. A copy that includes.gitmultiplies image size by 10.Healthcheck
HEALTHCHECK CMD curl -f http://localhost/ || exit 1. Kubernetes uses it; CI uses it.
Common failures
Origin
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.
— Docker, *What is Docker?*, 2014 (paraphrase of Docker's early documentation)
Evidence
FAQ
- Docker vs Podman?
Podman is daemonless and rootless by default.
alias docker=podmanmostly works for basic usage; Docker Compose is often the gap.- Can Docker run rootless?
Yes, since 2019 (
dockerd-rootless-setuptool.sh install). It uses user namespaces.- Docker on Mac/Windows?
It runs a Linux VM (Docker Desktop) because containers share the Linux kernel. On macOS, Colima and OrbStack are alternatives.
- Is Docker free?
Docker Engine is free (Apache 2.0). Docker Desktop is free for personal and small businesses; large companies need a paid license since 2023.
- Docker vs containerd?
containerd is the runtime; Docker is a platform built on top of it. You can run containerd without Docker; Docker uses containerd.
Connections
● broader ● narrower ● related
Broader
containerizationdeployment
Related
Used in the garden
- Mastering Headless: Directus & Next.js for Hyper-Efficient SaaS Devs (5×)
- Nginx Mastery: Host Multiple Apps with One Server, Conquer LatAm Tech Costs (5×)
- Unleash Hyper-Relevance: Build Your Niche Search Engine with Meilisearch (2×)
- From Script to Microservice: Scaling Reporting Automation to 10K Daily Requests (1×)
Sources
Docker (2024). Docker overview. https://docs.docker.com/get-started/overview/
Docker (2024). Dockerfile reference. https://docs.docker.com/engine/reference/builder/
Open Container Initiative (2024). OCI Image Format Specification. https://github.com/opencontainers/image-spec
Solomon Hykes (2013). The future of Linux Containers (PyCon talk). https://www.youtube.com/watch?v=wW9CAH9nSLs
Etymology
Origin: borrowed
docker(noun): a port worker who loads and unloads ships; metaphor for software that loads and unloads containers
Semantic network
● broader ● narrower ● related
Broader
containerizationdeployment
Related
Used in the garden
- Mastering Headless: Directus & Next.js for Hyper-Efficient SaaS Devs (5×)
- Nginx Mastery: Host Multiple Apps with One Server, Conquer LatAm Tech Costs (5×)
- Unleash Hyper-Relevance: Build Your Niche Search Engine with Meilisearch (2×)
- From Script to Microservice: Scaling Reporting Automation to 10K Daily Requests (1×)
Sources
Docker (2024). Docker overview. https://docs.docker.com/get-started/overview/
Docker (2024). Dockerfile reference. https://docs.docker.com/engine/reference/builder/
Open Container Initiative (2024). OCI Image Format Specification. https://github.com/opencontainers/image-spec
Solomon Hykes (2013). The future of Linux Containers. https://www.youtube.com/watch?v=wW9CAH9nSLs