diff --git a/express.js b/express.js index 6ca1864..fc19b52 100644 --- a/express.js +++ b/express.js @@ -465,7 +465,7 @@ module.exports = (app) => { // 2. filter for materia-web image and named xxxx_phpfpm_1 name // 3. pick the first line // 4. pick the container name - let targetImage = execSync('docker ps -a --format "{{.Image}} {{.Names}}" | grep -e ".*materia:.* docker_app_1" | head -n 1 | cut -d" " -f2'); + let targetImage = execSync('docker ps -a --format "{{.Image}} {{.Names}}" | grep -e ".*materia:.* docker_app_.*" | head -n 1 | cut -d" " -f2'); if(!targetImage){ throw "MWDK Couldn't find a docker container using a 'materia-phpfpm' image named 'phpfpm'." }