From ee4f7cedbf0cc9f41e1ad7d5852987593f65d969 Mon Sep 17 00:00:00 2001 From: librelad Date: Sun, 24 May 2026 13:02:44 +0100 Subject: [PATCH] fix(rootless): run docker ps inside the install-user shell when restarting all containers dockerStartAllApps expanded $(docker ps -a -q) in the outer control-plane shell, which has no DOCKER_HOST and so hit the nonexistent rooted socket at /var/run/docker.sock. In rootless mode that connection fails, the substitution returns empty, and 'docker restart' is then called with no arguments. Push the whole pipeline into dockerCommandRun (matching dockerRestartApp) and guard with xargs -r so it runs against the rootless socket and no-ops cleanly when there are no containers. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- scripts/docker/app/docker/start_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker/app/docker/start_all.sh b/scripts/docker/app/docker/start_all.sh index ba4271b..d6342c1 100755 --- a/scripts/docker/app/docker/start_all.sh +++ b/scripts/docker/app/docker/start_all.sh @@ -3,6 +3,6 @@ dockerStartAllApps() { isNotice "Please wait for docker containers to start" - local result=$(dockerCommandRun "docker restart $(docker ps -a -q)") + local result=$(dockerCommandRun "docker ps -a -q | xargs -r docker restart") checkSuccess "Starting up all docker containers" }