Assignment Day 1 – John

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

What is the difference between docker pause and docker unpause?

The command “docker pause” suspends all processes in the specified containers. Usually the SIGSTOP signal is sent to the process, which is observable by the process being suspended. However, the command “docker unpause” automatically un-suspends the processes in the specified containers. Usually this is accomplished via the SIGCONT signal.

docker pause <container_name>
docker unpause <container_name>

What is the difference between docker stop and docker kill?

The command “docker stop” sends a SIGTERM signal to the main process inside the specified container and after a grace period will send a SIGKILL signal to the main process. The SIGTERM signal being sent first allows for a graceful cleanup of the process. However, the command “docker kill” sends a SIGKILL signal to the main process inside the specified container. This will automatically kill the main process without no timeout period.

docker stop <container_name>
docker kill <container_name>