Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 02ebc8d

Browse files
agneumNikolayS
authored andcommitted
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /