mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
updating usage for runc and runc commands
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
@@ -52,6 +52,15 @@ var signalMap = map[string]syscall.Signal{
|
||||
var killCommand = cli.Command{
|
||||
Name: "kill",
|
||||
Usage: "kill sends the specified signal (default: SIGTERM) to the container's init process",
|
||||
ArgsUsage: `<container-id> <signal>
|
||||
|
||||
Where "<container-id>" is the name for the instance of the container and
|
||||
"<signal>" is the signal to be sent to the init process.
|
||||
|
||||
For example, if the container id is "ubuntu01" the following will send a "KILL"
|
||||
signal to the init process of the "ubuntu01" container:
|
||||
|
||||
# runc kill ubuntu01 KILL`,
|
||||
Action: func(context *cli.Context) {
|
||||
container, err := getContainer(context)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user