Commandes Linux : docker-compose pause

DOCKER-COMPOSE PAUSE

Commande : docker-compose pause
Pause services.

Usage: pause [SERVICE...]

 

Mettre en pause les services spécifiés :

Si aucun service n’est spécifié, tous les services de l’application seront mis en pause.

docker-compose pause [SERVICE...]

ex :

$ docker-compose ps
           Name                          Command               State                      Ports                    
-------------------------------------------------------------------------------------------------------------------
db                            docker-entrypoint.sh postgres    Up      5432/tcp                                    
example-voting-app_result_1   nodemon server.js                Up      0.0.0.0:5858->5858/tcp, 0.0.0.0:5001->80/tcp
example-voting-app_vote_1     python app.py                    Up      0.0.0.0:5000->80/tcp                        
example-voting-app_worker_1   /bin/sh -c dotnet src/Work ...   Up                                                  
redis                         docker-entrypoint.sh redis ...   Up      0.0.0.0:32772->6379/tcp                     
$ docker-compose pause vote
Pausing example-voting-app_vote_1 ... done
$ docker-compose ps
           Name                          Command               State                       Ports                    
--------------------------------------------------------------------------------------------------------------------
db                            docker-entrypoint.sh postgres    Up       5432/tcp                                    
example-voting-app_result_1   nodemon server.js                Up       0.0.0.0:5858->5858/tcp, 0.0.0.0:5001->80/tcp
example-voting-app_vote_1     python app.py                    Paused   0.0.0.0:5000->80/tcp                        
example-voting-app_worker_1   /bin/sh -c dotnet src/Work ...   Up                                                   
redis                         docker-entrypoint.sh redis ...   Up       0.0.0.0:32772->6379/tcp

 

Fermer le menu
%d blogueurs aiment cette page :