From 79744ae28378eb3b2d8e2ec513b18e1e850dafd6 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 8 Sep 2020 16:24:49 +0200 Subject: [PATCH] fix: dev: filter running containers on the ``master-service`` tag Actually other tag for subordinates are useless. Signed-off-by: Valentin Lab --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index b8dcc30..deea57d 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -986,7 +986,7 @@ export -f docker_add_host_declaration get_running_containers_for_service() { local service="$1" - docker ps --filter label="compose.service=$service" --format="{{.ID}}" + docker ps --filter label="compose.master-service=$service" --format="{{.ID}}" } export -f get_running_containers_for_service