Images, containers, and processes
An image contains filesystem layers and configuration. A container starts a process from that image with isolation boundaries. Containers share a host kernel rather than each carrying a full independent virtual-machine kernel. Stopping a container stops its process but does not delete the image. For example, two containers can start from nginx:alpine while keeping separate writable layers and runtime identities.
Two containers can start from nginx:alpine while keeping separate writable layers and runtime identities.
Pulling an image obtains a packaged filesystem and configuration. Starting a container uses that image to create an isolated process environment with its own writable layer. The main process runs until it exits or is stopped; a stopped container is still a stored container object until removal. The image can remain available for later containers.
An image is a reusable starting artifact. A container is a runtime instance. The writable layer stores changes specific to that instance. Containers share the underlying host kernel rather than each booting an entirely independent operating system. This makes them lightweight but limits compatibility and isolation assumptions. Several containers from one image do not share process memory automatically. Persistent business data should use deliberately managed storage, not rely on the lifetime of that writable layer. Removing a container can remove its local changes without removing the image or separately retained volumes.
Two containers can start from nginx:alpine while keeping separate writable layers and runtime identities.
Do not overlook this operational distinction: Stopping a container stops its process but does not delete the image.