Browse Source

fix: incorrect detection of existing db container

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
test1
Valentin Lab 5 years ago
parent
commit
b858e44af4
  1. 2
      bin/compose-core

2
bin/compose-core

@ -3084,7 +3084,7 @@ is_volume_used() {
while read -r container_id; do
while read-0 src dst; do
[[ "$src" == "$volume"/* ]] && return 0
[[ "$src/" == "$volume"/* ]] && return 0
done < <(get_volumes_for_container "$container_id")
done < <(get_running_compose_containers)
return 1

Loading…
Cancel
Save