From 3b52afab936d5d8187400987b66ea251eca7690f Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 9 Feb 2022 00:08:20 +0100 Subject: [PATCH] Use `DOCKER_HOST` env to search for docker before searching for a hardcode docker socket (#763) Fix #757 --- pipeline/backend/docker/docker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipeline/backend/docker/docker.go b/pipeline/backend/docker/docker.go index baf92762f..575807053 100644 --- a/pipeline/backend/docker/docker.go +++ b/pipeline/backend/docker/docker.go @@ -36,6 +36,9 @@ func (e *docker) Name() string { } func (e *docker) IsAvailable() bool { + if os.Getenv("DOCKER_HOST") != "" { + return true + } _, err := os.Stat("/var/run/docker.sock") return err == nil }