diff options
Diffstat (limited to 'image/docker_image.go')
-rw-r--r-- | image/docker_image.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/image/docker_image.go b/image/docker_image.go index 8d9c57e..5cb004f 100644 --- a/image/docker_image.go +++ b/image/docker_image.go @@ -85,6 +85,11 @@ func (image *dockerImageAnalyzer) Fetch() (io.ReadCloser, error) { clientOpts = append(clientOpts, client.WithDialContext(helper.Dialer)) default: + + if os.Getenv("DOCKER_TLS_VERIFY") != "" && os.Getenv("DOCKER_CERT_PATH") == "" { + os.Setenv("DOCKER_CERT_PATH", "~/.docker") + } + clientOpts = append(clientOpts, client.FromEnv) } |