Skip to content

Commit 02ebc8d

Browse files
agneumNikolayS
authored andcommittedJul 8, 2024
fix: filter labels to list containers (#565)
1 parent 0030c97 commit 02ebc8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎engine/internal/provision/docker/docker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func RemoveContainer(r runners.Runner, cloneName string) (string, error) {
221221

222222
// ListContainers lists container names.
223223
func ListContainers(r runners.Runner, clonePool string) ([]string, error) {
224-
dockerListCmd := fmt.Sprintf(`docker container ls --filter "label=%s" --filter "label=%s" --all --format '{{.Names}}'`,
224+
dockerListCmd := fmt.Sprintf(`docker container ls --filter "label=%s=%s" --all --format '{{.Names}}'`,
225225
LabelClone, clonePool)
226226

227227
out, err := r.Run(dockerListCmd, false)

0 commit comments

Comments
 (0)
Please sign in to comment.