commit
20b96a3d35
3 changed files with 8 additions and 8 deletions
|
@ -214,7 +214,7 @@ $ sudo ctr containers start redis /containers/redis
|
||||||
```
|
```
|
||||||
$ ctr containers kill -h
|
$ ctr containers kill -h
|
||||||
NAME:
|
NAME:
|
||||||
kill - send a signal to a container or it's processes
|
kill - send a signal to a container or its processes
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
command kill [command options] [arguments...]
|
command kill [command options] [arguments...]
|
||||||
|
|
|
@ -241,7 +241,7 @@ func attachStdio(stdins, stdout, stderr *string) error {
|
||||||
|
|
||||||
var KillCommand = cli.Command{
|
var KillCommand = cli.Command{
|
||||||
Name: "kill",
|
Name: "kill",
|
||||||
Usage: "send a signal to a container or it's processes",
|
Usage: "send a signal to a container or its processes",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.IntFlag{
|
cli.IntFlag{
|
||||||
Name: "pid,p",
|
Name: "pid,p",
|
||||||
|
|
|
@ -87,7 +87,7 @@ type Container interface {
|
||||||
Path() string
|
Path() string
|
||||||
// Pid returns the container's init process id
|
// Pid returns the container's init process id
|
||||||
Pid() (int, error)
|
Pid() (int, error)
|
||||||
// SetExited sets the exit status of the container after it's init dies
|
// SetExited sets the exit status of the container after its init dies
|
||||||
SetExited(status int)
|
SetExited(status int)
|
||||||
// Delete deletes the container
|
// Delete deletes the container
|
||||||
Delete() error
|
Delete() error
|
||||||
|
|
Loading…
Reference in a new issue