Commandes Linux : docker-compose kill

DOCKER-COMPOSE KILL

Commande : docker-compose kill
Force stop service containers.

Usage: kill [options] [SERVICE...]

Options:
    -s SIGNAL         SIGNAL to send to the container.
                      Default signal is SIGKILL.

 

Forcer l’arrêt des containers d’une application :

docker-compose kill [SERVICE...]

ex :

$ docker-compose kill
Killing example-voting-app_vote_1   ... done
Killing example-voting-app_worker_1 ... done
Killing db                          ... done
Killing redis                       ... done
Killing example-voting-app_result_1 ... done
$ docker-compose kill redis
Killing redis ... done
$ docker-compose kill -s 15 vote
Killing example-voting-app_vote_1 ... done
$ docker-compose kill -s SIGTERM result
Killing example-voting-app_result_1 ... done

 

Fermer le menu