We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 766d227 commit f1c28fcCopy full SHA for f1c28fc
main.go
@@ -13,6 +13,7 @@ import (
13
"github.com/drone/drone-gc/gc/cache"
14
"github.com/drone/signal"
15
16
+ "github.com/docker/docker/client"
17
docker "github.com/docker/docker/client"
18
"github.com/docker/go-units"
19
"github.com/kelseyhightower/envconfig"
@@ -39,7 +40,7 @@ func main() {
39
40
Msg("Cannot load configuration variables")
41
}
42
- client, err := docker.NewClientWithOpts(nil)
43
+ client, err := docker.NewClientWithOpts(client.FromEnv)
44
if err != nil {
45
log.Fatal().Err(err).
46
Msg("Cannot create Docker client")
0 commit comments