diff --git a/newsfragments/fix-compose-run-dependency-condition-check.bugfix b/newsfragments/fix-compose-run-dependency-condition-check.bugfix new file mode 100644 index 00000000..c86029a6 --- /dev/null +++ b/newsfragments/fix-compose-run-dependency-condition-check.bugfix @@ -0,0 +1 @@ +Fixes compose run by waiting until the conditions are satisfied diff --git a/podman_compose.py b/podman_compose.py index f7c2682b..a145e958 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -3388,6 +3388,7 @@ async def compose_run(compose: PodmanCompose, args: argparse.Namespace) -> None: ) ) await compose.commands["up"](compose, up_args) + await check_dep_conditions(compose, deps_from_container(up_args, cnt)) build_args = argparse.Namespace( services=[args.service], if_not_exists=(not args.build), build_arg=[], **args.__dict__