在线文档教程
Docker 17
撰写 | Compose

docker-compose kill

docker-compose kill

Usage: kill [options] [SERVICE...] Options: -s SIGNAL SIGNAL to send to the container. Default signal is SIGKILL.

运行容器的强制通过发送SIGKILL信号来停止。可以选择传递信号,例如:

docker-compose kill -s SIGINT

fig, composition, compose, docker, orchestration, cli, kill