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
This commit is contained in:
Simone Gotti 2019-08-04 18:31:07 +02:00
parent b333b6f423
commit df66cfc736
1 changed files with 1 additions and 1 deletions

View File

@ -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
}