Skip to content

Commit

Permalink
Fix support for rootless docker context
Browse files Browse the repository at this point in the history
With the `'` it returns `'''unix:///run/user/1000/docker.sock'` which
fails the startsWith("unix://") check.

Fix up quarkusio#26892
  • Loading branch information
zakkak committed Sep 27, 2022
1 parent be8686d commit 71a0501
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static String fetchDockerEndpoint() {
OutputFilter outputFilter = new OutputFilter();
if (!ExecUtil.execWithTimeout(new File("."), outputFilter, Duration.ofMillis(3000),
"docker", "context", "ls", "--format",
"'{{- if .Current -}} {{- .DockerEndpoint -}} {{- end -}}'")) {
"{{- if .Current -}} {{- .DockerEndpoint -}} {{- end -}}")) {
LOGGER.debug("Docker context lookup didn't succeed in time");
return null;
}
Expand Down

0 comments on commit 71a0501

Please sign in to comment.