podman/pkg/domain
Valentin Rothberg f4d0496b54 wait: add --ignore option
In the recent past, I met the frequent need to wait for a container to
exist that, at the same time, may get removed (e.g., system tests in [1]).

Add an `--ignore` option to podman-wait which will ignore errors when a
specified container is missing and mark its exit code as -1.  Also
remove ID fields from the WaitReport.  It is actually not used by
callers and removing it makes the code simpler and faster.

Once merged, we can go over the tests and simplify them.

[1] github.com/containers/podman/pull/16852

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-12-16 10:24:29 +01:00
..
entities wait: add --ignore option 2022-12-16 10:24:29 +01:00
filters adding regex support to the ancestor ps filter function 2022-10-21 08:33:51 -03:00
infra wait: add --ignore option 2022-12-16 10:24:29 +01:00
utils Replace deprecated ioutil 2022-09-20 15:34:27 -04:00