From 71aa99b80db7947d3589c2126052cd4089636cfa Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 8 Feb 2022 10:35:59 +0100 Subject: [PATCH] Do not hardcode docker socket 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 baf92762fb..575807053a 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 }