diff --git a/internal/test/daemon/daemon.go b/internal/test/daemon/daemon.go index d0fed026c6..5210f97d73 100644 --- a/internal/test/daemon/daemon.go +++ b/internal/test/daemon/daemon.go @@ -630,7 +630,9 @@ func (d *Daemon) getClientConfig() (*clientConfig, error) { return nil, err } transport.DisableKeepAlives = true - + if proto == "unix" { + addr = filepath.Base(addr) + } return &clientConfig{ transport: transport, scheme: scheme,