Skip to content

Commit 8f7b8b0

Browse files
authored
consider Windows EOL when listing images (#65)
1 parent c56dc47 commit 8f7b8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cloud/localstack/docker/command/ListImagesCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public class ListImagesCommand extends Command {
66

77
public List<String> execute() {
88
List<String> params = Arrays.asList("images", "--format", "{{.Repository}}:{{.Tag}}");
9-
return Arrays.asList(dockerExe.execute(params).split("\n"));
9+
return Arrays.asList(dockerExe.execute(params).replaceAll("\r", "").split("\n"));
1010
}
1111
}

0 commit comments

Comments
 (0)