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

Assignment for Docker – Day 1

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 diff between docker pause and docker unpause?

The docker pause command suspends all processes in the specified containers. When suspending a process the SIGSTOP signal is used, which is observable by the process being suspended. With container pause we cannot execute any commands which will throw an error

root@ip-172-31-7-71 centos]# docker exec b5358234e052 ls
Error response from daemon: Container b5358234e052 is paused, unpause the container before exec

Docker unpause command is used to resume the suspended container to proceed with some execution

  • What is the diff between docker stop and docker kill?

Docker stop command sends the sigterm message which is short for terminate signal its a message that’s going to be received by the process telling it essentially to shut down on its own time.

Docker kill command kills signal to the primary running process inside the container. It’s like forcefully shutting down even though some task is in progress