diff --git a/e2e/docker-compose.yml b/e2e/docker-compose.yml index 11f1f688..a6981a46 100644 --- a/e2e/docker-compose.yml +++ b/e2e/docker-compose.yml @@ -102,7 +102,6 @@ services: - SSHPIPERD_DEBUG=${SSHPIPERD_DEBUG} - SSHPIPERD_ALLOWED_PROXY_ADDRESSES=0.0.0.0/0 - SSHPIPERD_SERVER_KEY_GENERATE_MODE=notexist - - DOCKER_API_VERSION=1.40 build: context: ../ target: testrunner diff --git a/plugin/docker/docker.go b/plugin/docker/docker.go index e635a11c..5bf924b2 100644 --- a/plugin/docker/docker.go +++ b/plugin/docker/docker.go @@ -26,7 +26,7 @@ type plugin struct { } func newDockerPlugin() (*plugin, error) { - cli, err := client.NewClientWithOpts(client.FromEnv) + cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) if err != nil { return nil, err }