Day-1: Q3. What is the difference between docker pause and docker unpause?

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

docker pause suspend all process in the container. docker unpause unsuspend all process in the container

root@ip-172-31-28-155:/home/ubuntu# docker start anoop2
anoop2
root@ip-172-31-28-155:/home/ubuntu# docker start anoop1
anoop1

root@ip-172-31-28-155:/home/ubuntu# docker pause anoop2
anoop2

root@ip-172-31-28-155:/home/ubuntu# docker pause anoop2
anoop2
root@ip-172-31-28-155:/home/ubuntu# docker ps -a | grep anoop
c5a741893181   httpd          "httpd-foreground"       12 minutes ago       Up 27 seconds (Paused)            80/tcp    anoop2
fc660bad9f21   httpd          "httpd-foreground"       13 minutes ago       Up 22 seconds                     80/tcp    anoop1
root@ip-172-31-28-155:/home/ubuntu#
root@ip-172-31-28-155:/home/ubuntu# docker unpause anoop2
anoop2
root@ip-172-31-28-155:/home/ubuntu# docker ps -a | grep anoop
c5a741893181   httpd          "httpd-foreground"       12 minutes ago       Up 37 seconds                     80/tcp    anoop2
fc660bad9f21   httpd          "httpd-foreground"       13 minutes ago       Up 32 seconds