From df66cfc736f3f063c6702e084143174251ea08b5 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Sun, 4 Aug 2019 18:31:07 +0200 Subject: [PATCH] docker driver: use fixed client api version Set the client required api version to 1.26. In this way we'll work with docker >= 1.13.1 --- internal/services/executor/driver/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/executor/driver/docker.go b/internal/services/executor/driver/docker.go index b3a6ea7..2f3c4c4 100644 --- a/internal/services/executor/driver/docker.go +++ b/internal/services/executor/driver/docker.go @@ -51,7 +51,7 @@ type DockerDriver struct { } func NewDockerDriver(logger *zap.Logger, executorID, initVolumeHostDir, toolboxPath string) (*DockerDriver, error) { - cli, err := client.NewClientWithOpts(client.FromEnv) + cli, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion("1.26")) if err != nil { return nil, err }