2022-07-28 16:28:18 +08:00
|
|
|
% runc-kill "8"
|
|
|
|
|
|
|
|
# NAME
|
2022-12-30 11:21:19 +08:00
|
|
|
**runc-kill** - send a specified signal to container
|
2022-07-28 16:28:18 +08:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2022-12-30 11:21:19 +08:00
|
|
|
**runc kill** [**--all**|**-a**] _container-id_ [_signal_]
|
2022-07-28 16:28:18 +08:00
|
|
|
|
2022-12-30 11:21:19 +08:00
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
By default, **runc kill** sends **SIGTERM** to the container's initial process
|
|
|
|
only.
|
|
|
|
|
|
|
|
A different signal can be specified either by its name (with or without the
|
|
|
|
**SIG** prefix), or its numeric value. Use **kill**(1) with **-l** option
|
|
|
|
to list available signals.
|
2022-07-28 16:28:18 +08:00
|
|
|
|
|
|
|
# OPTIONS
|
2022-12-30 11:21:19 +08:00
|
|
|
**--all**|**-a**
|
|
|
|
: Send the signal to all processes inside the container.
|
|
|
|
|
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
The following will send a **KILL** signal to the init process of the
|
|
|
|
**ubuntu01** container:
|
2022-07-28 16:28:18 +08:00
|
|
|
|
2022-12-30 11:21:19 +08:00
|
|
|
# runc kill ubuntu01 KILL
|
2022-07-28 16:28:18 +08:00
|
|
|
|
2022-12-30 11:21:19 +08:00
|
|
|
# SEE ALSO
|
2022-07-28 16:28:18 +08:00
|
|
|
|
2022-12-30 11:21:19 +08:00
|
|
|
**runc**(1).
|