diff --git a/packages/server/src/utils/docker/utils.ts b/packages/server/src/utils/docker/utils.ts index f4042111a..9d2464e06 100644 --- a/packages/server/src/utils/docker/utils.ts +++ b/packages/server/src/utils/docker/utils.ts @@ -145,8 +145,8 @@ export const getContainerByName = (name: string): Promise => { }); }; -// Commands passed through this method are held during Docker's build or pull process. (https://github.com/dokploy/dokploy/pull/3064) -export const dockerSafeExec = (command: string) => `CHECK_INTERVAL=10 +/** 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..." @@ -162,7 +162,7 @@ while true; do fi done -${command} +${exec} echo "Docker cleanup completed."`;