From 17f257140eaecbe39f679d27df85573eb15a7d51 Mon Sep 17 00:00:00 2001 From: haircommander Date: Thu, 19 Jul 2018 14:58:48 -0400 Subject: Added pod start and stop As well as added tests, man pages, and completions. Also reformatted and refactored a couple of other small things in the other pod commands. Signed-off-by: haircommander --- docs/podman-pod-rm.1.md | 2 +- docs/podman-pod-start.1.md | 38 +++++++++++++++++++++++++++++++++++++ docs/podman-pod-stop.1.md | 47 ++++++++++++++++++++++++++++++++++++++++++++++ docs/podman-pod.1.md | 2 ++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 docs/podman-pod-start.1.md create mode 100644 docs/podman-pod-stop.1.md (limited to 'docs') diff --git a/docs/podman-pod-rm.1.md b/docs/podman-pod-rm.1.md index 3b571ee9a..834e0d0bb 100644 --- a/docs/podman-pod-rm.1.md +++ b/docs/podman-pod-rm.1.md @@ -17,7 +17,7 @@ Remove all pods. Can be used in conjunction with \-f as well. **--latest, -l** -Instead of providing the pod name or ID, use the last created pod. +Instead of providing the pod name or ID, remove the last created pod. **--force, f** diff --git a/docs/podman-pod-start.1.md b/docs/podman-pod-start.1.md new file mode 100644 index 000000000..5d30db012 --- /dev/null +++ b/docs/podman-pod-start.1.md @@ -0,0 +1,38 @@ +% podman-pod-start "1" + +## NAME +podman\-pod\-start - Start one or more pods + +## SYNOPSIS +**podman pod start** [*options*] *pod* ... + +## DESCRIPTION +Start containers in one or more pods. You may use pod IDs or names as input. The pod must have a container attached +to be started. + +## OPTIONS + +**--all, -a** + +Starts all pods + +**--latest, -l** + +Instead of providing the pod name or ID, start the last created pod. + +## EXAMPLE + +podman pod start mywebserverpod + +podman pod start 860a4b23 5421ab4 + +podman pod start --latest + +podman pod start --all + + +## SEE ALSO +podman-pod(1), podman-pod-stop(1), podman-start(1) + +## HISTORY +July 2018, Adapted from podman start man page by Peter Hunt diff --git a/docs/podman-pod-stop.1.md b/docs/podman-pod-stop.1.md new file mode 100644 index 000000000..05e88041f --- /dev/null +++ b/docs/podman-pod-stop.1.md @@ -0,0 +1,47 @@ +% podman-pod-stop "1" + +## NAME +podman\-pod\-stop - Stop one or more pods + +## SYNOPSIS +**podman pod stop** [*options*] *pod* ... + +## DESCRIPTION +Stop containers in one or more pods. You may use pod IDs or names as input. + +## OPTIONS + +**--all, -a** + +Stops all pods + +**--latest, -l** + +Instead of providing the pod name or ID, stop the last created pod. + +## EXAMPLE + +podman pod stop mywebserverpod +cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907 + +podman pod stop 490eb 3557fb +490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5 +3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab + +3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab + +podman pod stop --latest +3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab + +podman pod stop --all +19456b4cd557eaf9629825113a552681a6013f8c8cad258e36ab825ef536e818 +3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab +490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5 +70c358daecf71ef9be8f62404f926080ca0133277ef7ce4f6aa2d5af6bb2d3e9 +cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907 + +## SEE ALSO +podman-pod(1), podman-pod-start(1), podman-stop(1) + +## HISTORY +July 2018, Originally compiled by Peter Hunt diff --git a/docs/podman-pod.1.md b/docs/podman-pod.1.md index 511a5841f..9aee75e81 100644 --- a/docs/podman-pod.1.md +++ b/docs/podman-pod.1.md @@ -16,6 +16,8 @@ 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-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. | ## HISTORY July 2018, Originally compiled by Peter Hunt -- cgit v1.2.3-54-g00ecf