mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:00:44 +00:00
fix(sandbox): remove redundant 'no such file or directory' check from isDockerDaemonUnavailable
Greptile review: 'dial unix' already covers missing Docker socket case (e.g. 'dial unix /var/run/docker.sock: connect: no such file or directory'). The bare string is also too generic and could cause false positives.
This commit is contained in:
@@ -278,10 +278,7 @@ export function isDockerDaemonUnavailable(stderr: string): boolean {
|
||||
lower.includes("cannot connect to the docker daemon") ||
|
||||
lower.includes("dial unix") ||
|
||||
lower.includes("docker daemon is not running") ||
|
||||
lower.includes("connection refused") ||
|
||||
// Docker socket path errors — narrow enough to avoid false positives
|
||||
lower.includes("no such file or directory") &&
|
||||
(lower.includes("/var/run/docker") || lower.includes("docker.sock"))
|
||||
lower.includes("connection refused")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user