mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
play kube: Add --wait option
Add a way to keep play kube running in the foreground and terminating all pods after receiving a a SIGINT or SIGTERM signal. The pods will also be cleaned up after the containers in it have exited. If an error occurrs during kube play, any resources created till the error point will be cleane up also. Add tests for the various scenarios. Fixes #14522 Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
@ -205,6 +205,18 @@ Start the pod after creating it, set to false to only create it.
|
||||
|
||||
@@option userns.container
|
||||
|
||||
#### **--wait**, **-w**
|
||||
|
||||
Run pods and containers in the foreground. Default is false.
|
||||
|
||||
At any time you can run `podman pod ps` in the other shell to view a list of
|
||||
the running pods and containers.
|
||||
|
||||
When attached in the tty mode, you can kill the pods and containers by pressing
|
||||
Ctrl-C or receiving any other interrupt signals.
|
||||
|
||||
Volumes created with `podman kube play` will be removed when `--wait=true`.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
Recreate the pod and containers as described in a file called `demo.yml`
|
||||
|
Reference in New Issue
Block a user