Assignment for Docker – Day 1

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

  • 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