Docker stop

From NovaOrdis Knowledge Base
Revision as of 19:25, 29 January 2018 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

External

Internal

Overview

Stop a running container by sending SIGTERM and then SIGKILL after a grace period:

docker stop <options> <container-id> <container-id> ...

The stop command preserves the container's writable layer, so when the container is restarted with docker start, the transient state preserved in the container's image by the previous runs is not lost. That state is only lost when the container is deleted with docker rm.