Commandes Linux : docker-compose top

DOCKER-COMPOSE TOP

Commande : docker-compose top
Display the running processes

Usage: top [SERVICE...]

 

Afficher les processus en cours :

Si aucun service n’est spécifié, tous les processus en cours de tous les containers seront affichés.

docker-compose top [SERVICE...]

ex :

$ docker-compose top
db
  UID      PID    PPID    C   STIME   TTY     TIME                            CMD                        
---------------------------------------------------------------------------------------------------------
vboxadd   16305   16244   0   22:26   ?     00:00:00   postgres                                          
vboxadd   16866   16305   0   22:26   ?     00:00:00   postgres: checkpointer process                    
vboxadd   16867   16305   0   22:26   ?     00:00:00   postgres: writer process                          
vboxadd   16868   16305   0   22:26   ?     00:00:00   postgres: wal writer process                      
vboxadd   16869   16305   0   22:26   ?     00:00:00   postgres: autovacuum launcher process             
vboxadd   16870   16305   0   22:26   ?     00:00:00   postgres: stats collector process                 
vboxadd   16872   16305   0   22:26   ?     00:00:01   postgres: postgres postgres 172.27.0.6(51422) idle
vboxadd   16876   16305   0   22:26   ?     00:00:00   postgres: postgres postgres 172.27.0.4(37812) idle

example-voting-app_result_1
UID     PID    PPID    C   STIME   TTY     TIME                      CMD                 
-----------------------------------------------------------------------------------------
root   16494   16456   0   22:26   ?     00:00:01   node /usr/local/bin/nodemon server.js
root   16798   16494   0   22:26   ?     00:00:00   /usr/local/bin/node server.js        

example-voting-app_vote_1
UID     PID    PPID    C   STIME   TTY     TIME                 CMD             
--------------------------------------------------------------------------------
root   16510   16483   0   22:26   ?     00:00:00   python app.py               
root   16797   16510   1   22:26   ?     00:00:02   /usr/local/bin/python app.py

example-voting-app_worker_1
UID     PID    PPID    C   STIME   TTY     TIME                       CMD                  
-------------------------------------------------------------------------------------------
root   16724   16703   0   22:26   ?     00:00:00   /bin/sh -c dotnet src/Worker/Worker.dll
root   16777   16724   2   22:26   ?     00:00:04   dotnet src/Worker/Worker.dll           

redis
  UID       PID    PPID    C   STIME   TTY     TIME         CMD     
--------------------------------------------------------------------
systemd+   16442   16412   0   22:26   ?     00:00:01   redis-server

 

Fermer le menu