From cd3b7488d3851d4b21321b4b257bf85f2e9ffa08 Mon Sep 17 00:00:00 2001 From: maride Date: Tue, 4 Sep 2018 16:32:30 +0200 Subject: Use fixed Docker API version --- src/docker.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/docker.go b/src/docker.go index 9bc667b..eefd8c8 100644 --- a/src/docker.go +++ b/src/docker.go @@ -5,6 +5,10 @@ import ( "context" ) +const ( + fixedDockerVersion = "1.38" +) + var ( dockerCtx context.Context dockerCli *client.Client @@ -18,7 +22,7 @@ func setupContext() { func setupDockerCLI() (err error) { if dockerCli == nil { - dockerCli, err = client.NewEnvClient() + dockerCli, err = client.NewClientWithOpts(client.WithVersion(fixedDockerVersion)) } return err -- cgit 1.4.1