diff --git a/client/client.go b/client/client.go index 814c537c65..a85b392674 100644 --- a/client/client.go +++ b/client/client.go @@ -122,7 +122,7 @@ func NewEnvClient() (*Client, error) { if err != nil { return cli, err } - if version != "" { + if os.Getenv("DOCKER_API_VERSION") != "" { cli.manualOverride = true } return cli, nil