Debug School

varunakg
varunakg

Posted on

Diff between docker pause and docker unpause?

Answer : Pause means that the processes in the container stop running and they are be able to be resumed later. Unpause resumes all the processes in the specified container.

[root@localhost ~]# docker pause vj1
vj1
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b32155889703 httpd "httpd-foreground" 2 minutes ago Created vj2
15321b2e4b20 httpd "httpd-foreground" 3 minutes ago Up 35 seconds (Paused) 80/tcp vj1
d9362521b23b httpd "httpd-foreground" 4 minutes ago Created agitated_jackson
b14acb2bfc36 hello-world "/hello" 3 hours ago Exited (0) 3 hours ago awesome_zhukovsky
693a7fc72262 hello-world "/hello" 3 hours ago Exited (0) 3 hours ago quirky_wiles
[root@localhost ~]# docker unpause vj1
vj1
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b32155889703 httpd "httpd-foreground" 3 minutes ago Created vj2
15321b2e4b20 httpd "httpd-foreground" 3 minutes ago Up 52 seconds 80/tcp vj1
d9362521b23b httpd "httpd-foreground" 5 minutes ago Created agitated_jackson
b14acb2bfc36 hello-world "/hello" 3 hours ago Exited (0) 3 hours ago awesome_zhukovsky
693a7fc72262 hello-world "/hello" 3 hours ago Exited (0) 3 hours ago quirky_wiles

Top comments (0)