What is the difference between `docker run`, `docker create` and `docker start`?
BeginnerConceptContainers, VMs & Isolation Internals
Answer
docker create creates the container (writable layer, config, network) but does not run it. docker start starts an existing stopped or created container. docker run = pull if missing + create + start (+ attach unless -d). Starting an existing container reuses its writable layer and its original arguments.
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