diff --git a/docker/client.go b/docker/client.go index fbda059..f8b9d0c 100644 --- a/docker/client.go +++ b/docker/client.go @@ -165,7 +165,7 @@ func ListContainers(socketPath string, enforceNetworkValidation bool) ([]Contain // Create client with custom socket path cli, err := client.NewClientWithOpts( - client.WithHost("unix://"+socketPath), + client.WithHost(socketPath), client.WithAPIVersionNegotiation(), ) if err != nil { @@ -215,7 +215,6 @@ func ListContainers(socketPath string, enforceNetworkValidation bool) ([]Contain hostname = containerInfo.Config.Hostname } - // Skip host container if set if hostContainerId != "" && c.ID == hostContainerId { continue