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 a7024c7

Browse files
committed
Merge branch 'container-filter-label' into 'master'
fix: filter labels to list containers (#565) See merge request postgres-ai/database-lab!883
2 parents 5d0c1af + 02ebc8d commit a7024c7

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 によって変換されたページ (->オリジナル) /