use this `if [[ -z "$(find $PROJECT_DIR -maxdepth 0 -printf '%U' | grep $PHP_UID_DEFAULT)" ]]; then` in entrypoint.sh When you have a file with timestamp e.g. 18:33 and a UID 33 for www-data your script fails. Thank you for sharing you knowledge, saved my day.