What is the difference between `docker pause` and `docker stop`?
IntermediateConceptContainers, VMs & Isolation Internals
Answer
pause uses the cgroup freezer to suspend all processes without signaling them; memory is retained and processes cannot tell time stopped (TCP connections may time out). stop terminates the processes. unpause resumes exactly where it left off.
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