Quiz · Why containers · lesson 4 of 6Quiz — why containersWhat is the difference between a Docker image and a Docker container?[A]An image is a single tar file with no layers that must be rebuilt from scratch on every change, and a container is a virtual machine with its own kernel. Each container boots a full guest OS with its own scheduler, which is why two containers from one image cannot run at the same time on a host — the first start locks the image.[B]An image is the running process with its live memory, while a container is the frozen snapshot you save to disk afterward. You build containers from a Dockerfile and instantiate images from them at runtime, so each running image writes straight into its container on the host, which is why stopping an image deletes that container along with its data.[C]An image and a container are the same artifact under two names — the engine calls it an image while it runs and a container while stopped. Both are fully writable, so changes made inside persist into the original Dockerfile automatically and are shared across every other copy on the host.[D]An image is a read-only, layered template — a packaged filesystem plus metadata from a Dockerfile. A container is a running instance of an image: the engine adds a thin writable layer and starts the process. One image yields many isolated containers; writes go to the per-container layer and vanish when it is removed.← BackImages and containersNext →How a container isolates a process