spiegel_podman/cmd/podman/pods
Valentin Rothberg fe488b5f11 pod create --replace
Add a `--replace` flag to the `pod create` command.  If another pod with
the same name already exists, it will be replaced and removed.

Adding this flag is motivated by #5485 to make running Podman in systemd
units (or any other scripts/automation) more robust.  In case of a
crash, a pod may not be removed by a sytemd unit anymore.  The
`--replace` flag allows for supporting crashes.

Note that the `--replace` flag does not require the `--name` flag to be
set, so it can be set unconditionally in `podman generate systemd`.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-06-15 15:55:55 +02:00
..
create.go pod create --replace 2020-06-15 15:55:55 +02:00
exists.go system tests must pass 2020-04-28 15:17:00 -05:00
inspect.go Add --format to pod inspect 2020-05-27 09:48:38 +03:00
kill.go Podman V2 birth 2020-04-16 15:53:58 -05:00
pause.go Podman V2 birth 2020-04-16 15:53:58 -05:00
pod.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
prune.go And system prune feature for v2. 2020-05-01 13:57:16 -04:00
ps.go Turn on More linters 2020-06-15 07:05:56 -04:00
restart.go Podman V2 birth 2020-04-16 15:53:58 -05:00
rm.go pod create --replace 2020-06-15 15:55:55 +02:00
start.go container-{create,run}: add --pod-id-file 2020-06-11 11:01:13 +02:00
stats.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
stop.go container-{create,run}: add --pod-id-file 2020-06-11 11:01:13 +02:00
top.go Fix build on OS X 2020-05-20 18:24:56 -04:00
unpause.go Podman V2 birth 2020-04-16 15:53:58 -05:00