File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/server/src/utils/docker Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -146,17 +146,17 @@ export const getContainerByName = (name: string): Promise<ContainerInfo> => {
146146} ;
147147
148148/**
149- * Docker commands passed through this method are held during Docker's build or pull process .
149+ * Docker commands sent using this method are held in a hold when Docker is busy .
150150 *
151151 * https://github.com/Dokploy/dokploy/pull/3064
152- * https://github.com/fir4tozden
153152 */
154- export const dockerSafeExec = ( exec : string ) => `CHECK_INTERVAL=10
153+ export const dockerSafeExec = ( exec : string ) => `
154+ CHECK_INTERVAL=10
155155
156156echo "Preparing for execution..."
157157
158158while true; do
159- PROCESSES=$(ps aux | grep -E "docker build|docker pull " | grep -v grep)
159+ PROCESSES=$(ps aux | grep -E "^.* docker [A-Za-z] " | grep -v grep)
160160
161161 if [ -z "$PROCESSES" ]; then
162162 echo "Docker is idle. Starting execution..."
169169
170170${ exec }
171171
172- echo "Execution completed."` ;
172+ echo "Execution completed."
173+ ` ;
173174
174175const cleanupCommands = {
175176 containers : "docker container prune --force" ,
You can’t perform that action at this time.
0 commit comments