fix(docker): add back client.WithAPIVersionNegotiation() to ensure docker compatibility

This commit is contained in:
yusing
2026-01-17 15:27:49 +08:00
parent 2da4bbedbf
commit 89cbcfee8c

View File

@@ -149,6 +149,8 @@ func NewClient(cfg types.DockerProviderConfig, unique ...bool) (*SharedClient, e
var addr string
var dial func(ctx context.Context) (net.Conn, error)
opt = append(opt, client.WithAPIVersionNegotiation())
if agent.IsDockerHostAgent(host) {
a, ok := agentpool.Get(host)
if !ok {