root@ip-172-31-18-66:/home/ubuntu# docker pause 38fc821c437d
38fc821c437d
root@ip-172-31-18-66:/home/ubuntu# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
38fc821c437d httpd "httpd-foreground" 15 minutes ago Up 10 seconds (Paused) 80/tcp srucon
root@ip-172-31-18-66:/home/ubuntu# docker unpause 38fc821c437d
38fc821c437d
root@ip-172-31-18-66:/home/ubuntu# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
38fc821c437d httpd "httpd-foreground" 15 minutes ago Up 19 seconds 80/tcp srucon
PAUSE and UNPAUSE docker commands are used to pause and resume containers using cgroup freezer
Top comments (0)