From e9dbfb239b045671a76f864ac9cf328ec294751b Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Wed, 30 Jul 2025 09:36:53 +0200 Subject: [PATCH] fix: remove hardcoded protocol from socket path --- docker/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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