From c447238e0d5ef999812779c617ce92a10f2ecf94 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 3 May 2023 11:44:26 +0200 Subject: [PATCH] fix: [compose] prevent session directory to disappear --- bin/compose | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/compose b/bin/compose index 9f15b41..64b63e0 100755 --- a/bin/compose +++ b/bin/compose @@ -311,6 +311,7 @@ list_compose_vars() { get_running_compose_containers() { ## XXXvlab: docker bug: there will be a final newline anyway docker ps --filter label="compose.service" --format='{{.ID}}' + docker ps --filter label="compose" --format='{{.ID}}' } get_volumes_for_container() { @@ -936,6 +937,7 @@ mk_docker_run_options() { "-e" "HOST_COMPOSE_LAUNCHER_OPTS=$SESSION_DIR/$UID-$hash" "-e" "COMPOSE_LAUNCHER_OPTS=$dest" "-e" "COMPOSE_LAUNCHER_BIN=$COMPOSE_LAUNCHER_BIN" + "--label" "compose=1" ) p0 "${additional_docker_run_opts[@]}" >> "$filename" docker_run_opts+=("${additional_docker_run_opts[@]}")