From 99849a489b28e7e418a43d7a9ad61f642c4c7e64 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Wed, 27 Mar 2024 14:14:13 -0700 Subject: [PATCH] fix docker client version conflicts --- internal/resource/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/resource/container.go b/internal/resource/container.go index 6fb3f2f..11ace3c 100644 --- a/internal/resource/container.go +++ b/internal/resource/container.go @@ -83,7 +83,7 @@ func NewContainer(containerClientApi ContainerClient) *Container { var apiClient ContainerClient = containerClientApi if apiClient == nil { var err error - apiClient, err = client.NewClientWithOpts(client.FromEnv) + apiClient, err = client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) if err != nil { panic(err) }