Debug School

Sivakumar S
Sivakumar S

Posted on

Docker Pause-stop-kill

1. Docker Pause:
when we execute pause for a container - that particular process is suspended and we can see that process is still alive as unlike kill or stop command execution

2. Docker unpause:
Docker unpause command will resume the suspended containers process from where it suspended.

3. Docker stop:
this command will execute SIGTERM (soft kill) to container's main process and after the grace period (optional), will execute SIGKILL.

4. Docker kill:
this command will execute SIGKILL (immediate termination - Exit code 137) signal to container's main process and optionally we can use --signal parameter to specify the system call signal

Top comments (0)