mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-27 11:31:06 +01:00
fix(docker): add back client.WithAPIVersionNegotiation() to ensure docker compatibility
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user