commit
20b96a3d35
3 changed files with 8 additions and 8 deletions
12
README.md
12
README.md
|
@ -212,9 +212,9 @@ $ sudo ctr containers start redis /containers/redis
|
||||||
### Kill a container's process
|
### Kill a container's process
|
||||||
|
|
||||||
```
|
```
|
||||||
$ 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...]
|
||||||
|
@ -227,7 +227,7 @@ OPTIONS:
|
||||||
### Exec another process into a container
|
### Exec another process into a container
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ctr containers exec -h
|
$ ctr containers exec -h
|
||||||
NAME:
|
NAME:
|
||||||
exec - exec another process in an existing container
|
exec - exec another process in an existing container
|
||||||
|
|
||||||
|
@ -242,13 +242,13 @@ OPTIONS:
|
||||||
--env, -e [--env option --env option] environment variables for the process
|
--env, -e [--env option --env option] environment variables for the process
|
||||||
--uid, -u "0" user id of the user for the process
|
--uid, -u "0" user id of the user for the process
|
||||||
--gid, -g "0" group id of the user for the process
|
--gid, -g "0" group id of the user for the process
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stats for a container
|
### Stats for a container
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ctr containers stats -h
|
$ ctr containers stats -h
|
||||||
NAME:
|
NAME:
|
||||||
stats - get stats for running container
|
stats - get stats for running container
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ OPTIONS:
|
||||||
--unix-sockets perist unix sockets
|
--unix-sockets perist unix sockets
|
||||||
--exit exit the container after the checkpoint completes successfully
|
--exit exit the container after the checkpoint completes successfully
|
||||||
--shell checkpoint shell jobs
|
--shell checkpoint shell jobs
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Get events
|
### Get events
|
||||||
|
|
|
@ -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