diff --git a/dev-tools/packaging/package_test.go b/dev-tools/packaging/package_test.go index c167f89511a..9e31053f3d8 100644 --- a/dev-tools/packaging/package_test.go +++ b/dev-tools/packaging/package_test.go @@ -522,7 +522,7 @@ func checkDockerImageRun(t *testing.T, p *packageFile, imagePath string) { } defer f.Close() - c, err := client.NewClientWithOpts(client.FromEnv) + c, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) if err != nil { t.Errorf("failed to get a Docker client: %s", err) }