mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 12:03:33 +00:00
fix: negotiate docker client API version in e2e test
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ func readFileInfoInContainer(t *testing.T, machine *ucind.Machine, containerName
|
|||||||
t.Helper()
|
t.Helper()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
dockerCli, err := dockerclient.NewClientWithOpts(dockerclient.FromEnv)
|
dockerCli, err := dockerclient.NewClientWithOpts(dockerclient.FromEnv, dockerclient.WithAPIVersionNegotiation())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fileInfo{}, err
|
return fileInfo{}, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user