Skip to content

Commit

Permalink
fix list containers output
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed May 27, 2021
1 parent 6065acd commit 22f2226
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal/docker/cli.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package docker

import (
"bytes"
"context"
"fmt"
"os"
Expand Down Expand Up @@ -52,6 +53,7 @@ func ListContainers(ctx context.Context) ([]string, error) {
if err != nil {
return nil, err
}
output = bytes.TrimSpace(output)
return newlines.Split(string(output), -1), nil
}

Expand Down

0 comments on commit 22f2226

Please sign in to comment.