From f258e43c7c4685102fbbf52303348f434ca8cb3e Mon Sep 17 00:00:00 2001 From: haircommander Date: Fri, 20 Jul 2018 13:28:19 -0400 Subject: Add pod pause/unpause Added Pause() and Unpause() to libpod/pod.go Added man pages, tests and completions Signed-off-by: haircommander Closes: #1126 Approved by: rhatdan --- docs/podman-pod-pause.1.md | 32 ++++++++++++++++++++++++++++++++ docs/podman-pod-unpause.1.md | 32 ++++++++++++++++++++++++++++++++ docs/podman-pod.1.md | 2 ++ 3 files changed, 66 insertions(+) create mode 100644 docs/podman-pod-pause.1.md create mode 100644 docs/podman-pod-unpause.1.md (limited to 'docs') diff --git a/docs/podman-pod-pause.1.md b/docs/podman-pod-pause.1.md new file mode 100644 index 000000000..56d63e2e2 --- /dev/null +++ b/docs/podman-pod-pause.1.md @@ -0,0 +1,32 @@ +% podman-pod-pause "1" + +## NAME +podman\-pod\-pause - Pause one or more pods + +## SYNOPSIS +**podman pod pause** [*options*] *pod* ... + +## DESCRIPTION +Pauses all the running processes in the containers of one or more pods. You may use pod IDs or names as input. + +## OPTIONS + +**--all, a** + +Pause all pods. + +**--latest, -l** + +Instead of providing the pod name or ID, pause the last created pod. + +## EXAMPLE + +podman pod pause mywebserverpod + +podman pod pause 860a4b23 + +## SEE ALSO +podman-pod(1), podman-pod-unpause(1), podman-pause(1) + +## HISTORY +July 2018, Originally compiled by Peter Hunt diff --git a/docs/podman-pod-unpause.1.md b/docs/podman-pod-unpause.1.md new file mode 100644 index 000000000..2c065976c --- /dev/null +++ b/docs/podman-pod-unpause.1.md @@ -0,0 +1,32 @@ +% podman-pod-unpause "1" + +## NAME +podman\-pod\-unpause - Unpause one or more pods + +## SYNOPSIS +**podman pod unpause** [*options*] *pod* ... + +## DESCRIPTION +Unpauses all the paused processes in the containers of one or more pods. You may use pod IDs or names as input. + +## OPTIONS + +**--all, a** + +Unpause all pods. + +**--latest, -l** + +Instead of providing the pod name or ID, unpause the last created pod. + +## EXAMPLE + +podman pod unpause mywebserverpod + +podman pod unpause 860a4b23 + +## SEE ALSO +podman-pod(1), podman-pod-pause(1), podman-unpause(1) + +## HISTORY +July 2018, Originally compiled by Peter Hunt diff --git a/docs/podman-pod.1.md b/docs/podman-pod.1.md index 74b6d75b5..56b93819d 100644 --- a/docs/podman-pod.1.md +++ b/docs/podman-pod.1.md @@ -15,10 +15,12 @@ podman pod is a set of subcommands that manage pods, or groups of containers. | ------------------------------------------------- | ------------------------------------------------------------------------------ | | [podman-pod-create(1)](podman-pod-create.1.md) | Create a new pod. | | [podman-pod-kill(1)](podman-pod-kill.1.md) | Kill the main process of each container in pod. | +| [podman-pod-pause(1)](podman-pod-pause.1.md) | Pause one or more pods. | | [podman-pod-ps(1)](podman-pod-ps.1.md) | Prints out information about pods. | | [podman-pod-rm(1)](podman-pod-rm.1.md) | Remove one or more pods. | | [podman-pod-start(1)](podman-pod-start.1.md) | Start one or more pods. | | [podman-pod-stop(1)](podman-pod-stop.1.md) | Stop one or more pods. | +| [podman-pod-unpause(1)](podman-pod-unpause.1.md) | Unpause one or more pods. | ## HISTORY July 2018, Originally compiled by Peter Hunt -- cgit v1.2.3-54-g00ecf