How Docker thinks
Docker packages an application and all its dependencies into a standardized unit called a container. The container runs the same everywhere — your laptop, a teammate's machine, a cloud server.
Key concepts:
Image — a read-only blueprint. Built from a Dockerfile. Like a class definition.
Container — a running instance of an image. Like an object instantiated from a class. Isolated process with its own filesystem, network, and process space.
Registry — storage for images. Docker Hub is the default public registry. You can run private registries.
Containers vs VMs: VMs virtualize hardware (heavy, slow to start). Containers share the host OS kernel (lightweight, start in milliseconds).