about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-09-04 16:32:30 +0200
committermaride <maride@darknebu.la>2018-09-04 16:32:30 +0200
commitcd3b7488d3851d4b21321b4b257bf85f2e9ffa08 (patch)
tree46b005980afd182e53d0f18934e5b282a8c1fab3 /src
parent76bc68cb6abb3105bfb154fc59ecdfd54f8ff564 (diff)
Use fixed Docker API version
Diffstat (limited to 'src')
-rw-r--r--src/docker.go6
1 files changed, 5 insertions, 1 deletions
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