From fc9ed19b2b280957ffcf29f21a14c1398285e4d7 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Sat, 12 Mar 2022 21:16:16 +0300 Subject: [PATCH] wait command --- podman_compose.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index abb1752..8806280 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1685,6 +1685,12 @@ def is_local(container: dict) -> bool: else container["image"].startswith("localhost/") ) +@cmd_run(podman_compose, "wait", "wait running containers to stop") +def compose_wait(compose, args): + containers = [cnt["name"] for cnt in compose.containers] + cmd_args = ["--"] + cmd_args.extend(containers) + compose.podman.run([], "wait", cmd_args, sleep=0) @cmd_run(podman_compose, "pull", "pull stack images") def compose_pull(compose, args):