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 authored and igorregis committed Oct 16, 2022
1 parent 465c8e2 commit ac3afa0
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 ac3afa0

Please sign in to comment.