docker kill
Table of Contents:
Command Name:
docker kill
Description:
Kill one or more running containers
Syntax:
easywhatis$ docker kill --help
Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...]
Kill one or more running containers
Options:
-s, --signal string Signal to send to the container (default "KILL")
easywhatis$
Example:
easywhatis$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a5bb226d1850 ubuntu "bash" 7 hours ago Up 7 hours eloquent_knuth
easywhatis$ docker kill a5bb226d1850
a5bb226d1850
easywhatis$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
easywhatis$