Skip to content

Commit

Permalink
Add 'pause' and 'resume' commands
Browse files Browse the repository at this point in the history
These are useful for checkpointing, since getting a consistent
checkpoint of a running container is hard ;).  This doesn't handle the
checkpoints themselves though, which are currently not specified.
Checkpoint behavior will look something like:

  $ funC pause --wait container-id
  $ checkpoint ...
  $ funC resume container-id

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Sep 15, 2015
1 parent 7d5b739 commit 44def70
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,42 @@ $ echo $?
43
```

### pause

Pause all processes in a container.

* *Options*
* *`--wait`* Block until the process is completely paused.
Otherwise return immediately after initiating the pause, which may happen before the pause is complete.
* *Arguments*
* *`<ID>`* The container ID to join.
* *Exit code:* 0 on success, non-zero on error.

Example:
```sh
$ funC pause --wait hello-1
$ echo $?
0
```

### resume

Unpause all processes in a container.

* *Options*
* *`--wait`* Block until the process is completely unpaused.
Otherwise return immediately after initiating the unpause, which may happen before the unpause is complete.
* *Arguments*
* *`<ID>`* The container ID to join.
* *Exit code:* 0 on success, non-zero on error.

Example:
```sh
$ funC resume hello-1
$ echo $?
0
```

### signal

Sends a signal to the container.
Expand Down

0 comments on commit 44def70

Please sign in to comment.