Understanding Docker's core concepts is essential before writing Dockerfiles. Concept Description Image Read-only template with OS, runtime, app code Container Running instance of an image Dockerfile Instructions to build an image Layer Each Dockerfile instruction creates a cached layer Volume Persistent storage that survives container restarts Network Virtual network connecting containers Registry Storage for images (Docker Hub, GitHub Container Registry) Tag Version label for an image (e.g., billing-catalog:1.2.3) Image Layering Layers are cached and reused. The least-changing instructions go at the bottom (base image), and most-changing instructions go at the top (app code). When a layer changes, all layers above it are rebuilt.