mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-26 01:43:49 +01:00
wait command
This commit is contained in:
parent
2d6bb52e36
commit
fc9ed19b2b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user