Skip to content

Commit f1c28fc

Browse files
author
TP Honey
committed
(fix) update call to docker client
1 parent 766d227 commit f1c28fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/drone/drone-gc/gc/cache"
1414
"github.com/drone/signal"
1515

16+
"github.com/docker/docker/client"
1617
docker "github.com/docker/docker/client"
1718
"github.com/docker/go-units"
1819
"github.com/kelseyhightower/envconfig"
@@ -39,7 +40,7 @@ func main() {
3940
Msg("Cannot load configuration variables")
4041
}
4142

42-
client, err := docker.NewClientWithOpts(nil)
43+
client, err := docker.NewClientWithOpts(client.FromEnv)
4344
if err != nil {
4445
log.Fatal().Err(err).
4546
Msg("Cannot create Docker client")

0 commit comments

Comments
 (0)