From 0fbb063d063fd029d1da470eabd32f20bb951025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=84=D1=8B=D1=80=D0=B0=D1=82=20=D1=91=D0=B7=D0=B4=D1=8D?= =?UTF-8?q?=D0=BD?= <31664778+fir4tozden@users.noreply.github.com> Date: Sun, 30 Nov 2025 22:15:01 +0300 Subject: [PATCH] chore: updated dockerSafeExec() logs --- packages/server/src/utils/docker/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/utils/docker/utils.ts b/packages/server/src/utils/docker/utils.ts index 9d2464e06..7babb61b2 100644 --- a/packages/server/src/utils/docker/utils.ts +++ b/packages/server/src/utils/docker/utils.ts @@ -148,13 +148,13 @@ export const getContainerByName = (name: string): Promise => { /** Docker commands passed through this method are held during Docker's build or pull process. (https://github.com/dokploy/dokploy/pull/3064) */ export const dockerSafeExec = (exec: string) => `CHECK_INTERVAL=10 -echo "Starting Docker cleanup..." +echo "Preparing for execution..." while true; do PROCESSES=$(ps aux | grep -E "docker build|docker pull" | grep -v grep) if [ -z "$PROCESSES" ]; then - echo "Docker is idle. Starting cleanup..." + echo "Docker is idle. Starting execution..." break else echo "Docker is busy. Will check again in $CHECK_INTERVAL seconds..." @@ -164,7 +164,7 @@ done ${exec} -echo "Docker cleanup completed."`; +echo "Execution completed."`; export const cleanUpUnusedImages = async (serverId?: string) => { try {