Browse Source

Negociate API version with docker engine

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 năm trước cách đây
mục cha
commit
a701fd7601
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      local/backend.go

+ 1 - 1
local/backend.go

@@ -41,7 +41,7 @@ func init() {
 }
 
 func service(ctx context.Context) (backend.Service, error) {
-	apiClient, err := client.NewClientWithOpts(client.FromEnv)
+	apiClient, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
 	if err != nil {
 		return nil, err
 	}