Lab #14: Unpause Command

The docker-compose unpause command help to Unpauses paused containers of a service.

Pre-requisite:

Tested Infrastructure

Platform Number of Instance Reading Time
Play with Docker 1 5 min

Pre-requisite

Assignment

Bringing up the containers

$ docker-compose up -d

Checking container status

$ docker-compose ps
 Name               Command             State                    Ports                  
----------------------------------------------------------------------------------------
Mysqldb   docker-entrypoint.sh mysqld   Up      0.0.0.0:3306->3306/tcp, 33060/tcp       
Nginx     nginx -g daemon off;          Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp   

Pause the services

$ docker-compose pause
Pausing Nginx   ... done
Pausing Mysqldb ... done

Checking container status

$ docker-compose ps
 Name               Command             State                     Ports                  
-----------------------------------------------------------------------------------------
Mysqldb   docker-entrypoint.sh mysqld   Paused   0.0.0.0:3306->3306/tcp, 33060/tcp       
Nginx     nginx -g daemon off;          Paused   0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp

Unpause the service

$ docker-compose unpause
Unpausing Mysqldb ... done
Unpausing Nginx   ... done

You can Unpause single service also docker-compose unpause <service_name>

Contributor

Savio Mathew

Next » Lab #15: Logs Command