What is the difference between a container and an image?
BeginnerConceptContainers, VMs & Isolation Internals
Answer
An image is an immutable, layered, shareable template (filesystem plus metadata such as ENV, CMD). A container is a running or stopped instance of an image with a writable layer and runtime state. Analogy: image = class/AMI, container = object/EC2 instance. One image can back many containers.
More on Containers, VMs & Isolation Internals
What is a container, in one sentence?BeginnerHow do containers differ from virtual machines?BeginnerCan a Linux container run a Windows application, or the reverse?IntermediateWhat are Linux namespaces? Name the ones Docker uses.BeginnerWhat are cgroups and what do they do for containers?BeginnerWhat is PID 1 in a container and why does it matter?Intermediate