Assignment for Docker – Day 1

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare
  • 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