Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(agent): detect rootless Docker/Podman sockets for other users (#1200)
rcourtman0493fb78bfbe
diff --git a/internal/dockeragent/agent.go b/internal/dockeragent/agent.goindex acaf56ad00..416d27d36d 100644--- a/internal/dockeragent/agent.go+++ b/internal/dockeragent/agent.go@@ -441,6 +441,18 @@ func buildRuntimeCandidates(preference RuntimeKind) []runtimeCandidate {label: "podman rootless socket",})+ // Discover rootless Podman sockets for other users (e.g. agent runs as root+ // but Podman rootless is installed for uid 1000)+ if matches, err := filepath.Glob("/run/user/*/podman/podman.sock"); err == nil {+ for _, match := range matches {+ sockURI := "unix://" + match+ add(runtimeCandidate{+ host: sockURI,+ label: fmt.Sprintf("podman rootless socket (%s)", match),+ })+ }+ }+add(runtimeCandidate{host: "unix:///run/podman/podman.sock",label: "podman system socket",@@ -489,6 +501,17 @@ func buildRuntimeCandidates(preference RuntimeKind) []runtimeCandidate {label: "podman rootless socket",})+ // Discover rootless Podman sockets for other users+ if matches, err := filepath.Glob("/run/user/*/podman/podman.sock"); err == nil {+ for _, match := range matches {+ sockURI := "unix://" + match+ add(runtimeCandidate{+ host: sockURI,+ label: fmt.Sprintf("podman rootless socket (%s)", match),+ })+ }+ }+add(runtimeCandidate{host: "unix:///run/podman/podman.sock",label: "podman system socket",@@ -509,6 +532,18 @@ func buildRuntimeCandidates(preference RuntimeKind) []runtimeCandidate {label: "docker rootless socket",})+ // Discover rootless Docker sockets for other users (e.g. agent runs as root+ // but Docker rootless is installed for uid 1000)+ if matches, err := filepath.Glob("/run/user/*/docker.sock"); err == nil {+ for _, match := range matches {+ sockURI := "unix://" + match+ add(runtimeCandidate{+ host: sockURI,+ label: fmt.Sprintf("docker rootless socket (%s)", match),+ })+ }+ }+// macOS Docker Desktop socketif home := os.Getenv("HOME"); home != "" {add(runtimeCandidate{