Debug School

Cover image for DevOps Training - Docker Questions - Assessment 2
Potukuchi Venkata Mahati
Potukuchi Venkata Mahati

Posted on

DevOps Training - Docker Questions - Assessment 2

1. What is the difference between docker pause and docker unpause? (Hint - docker stats)
The docker pause command suspends all processes in the specified container whereas the docker unpause command resumes all processes in the specified container.

2. What is the difference between docker stop and docker kill (Hints - Return value of linux + SIGNALs)
Below are the differences -
a) docker stop attempts to gracefully shutdown the container whereas docker kill stops/terminates the container immediately.
b) docker stop returns None as return value whereas docker kill returns 0 (true) if the process was killed or1 (false) if the kill failed.
c) docker stop sends a SIGTERM signal to the main process inside the container whereas docker kill sends a SIGKILL signal.

Top comments (0)