diff --git a/internal/test/daemon/daemon.go b/internal/test/daemon/daemon.go index c20f88a9dc..009ce9e147 100644 --- a/internal/test/daemon/daemon.go +++ b/internal/test/daemon/daemon.go @@ -633,7 +633,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,