🚀 DevOps Certified Professional
📅 Starting: 1st of Every Month 🤝 +91 8409492687 | 🤝 +1 (469) 756-6329 🔍 Contact@DevOpsSchool.com

Assignment Day 1 – John

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started 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>