]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
Fix have_container seeing dead containers
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 5 Sep 2022 15:10:42 +0000 (18:10 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 22 Feb 2023 19:09:13 +0000 (21:09 +0200)
bin/cleanbuild-docker.sh

index cd6641f947c58d9246e2cef8794bff0fb6fbd886..0078973b89f645f3845d75e2ea1b9441873eb1cc 100755 (executable)
@@ -61,7 +61,7 @@ tmpfs() {
 have_container() {
     local name="$1" id
 
-    id=$(docker ps -a -f "label=cleanbuild=$name" --format '{{.ID}}')
+    id=$(docker ps -f "label=cleanbuild=$name" --format '{{.ID}}')
 
     test -n "$id"
 }
This page took 0.092154 seconds and 4 git commands to generate.