Assignment Day 1 – John

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 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>Code language: HTML, XML (xml)

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>Code language: HTML, XML (xml)