Debug School

Prashant C
Prashant C

Posted on

Docker Assessment 2

what is the diff between docker pause and docker unpause
The docker pause command suspends all processes in the specified containers. We can apply this command , if the container is in running state
we can verify this by using docker stats, we can see that cup usage goes to zero when we do docker pause.
The docker unpause command un-suspends all processes in the specified containers. We can apply this command , if the container is in pause state

What is the diff between docker stop and docker kill
docker stop: Stop a running container (send SIGTERM, and then SIGKILL after grace period). The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL.

docker kill: Kill a running container (send SIGKILL, or specified signal) .The main process inside the container will be sent SIGKILL, or any signal specified with option --signal. [emphasis mine]signal). The main process inside the container will be sent SIGKILL, or any signal specified with option --signal. [emphasis mine]

Top comments (0)