When I run docker-compose, I get an error:
php_1 | /usr/local/bin/docker-entrypoint.sh: line 2: $'\r': command not found
php_1 | Do not run Composer as root/super user! See https://getcomposer.org/root for details
php_1 |
php_1 |
php_1 | [Symfony\Component\Console\Exception\CommandNotFoundException]
" is not defined.
php_1 |
php_1 | Did you mean this?
php_1 | update
php_1 |
php_1 |
php_1 | /usr/local/bin/docker-entrypoint.sh: line 4: $'\r': command not found
: not found | /usr/local/bin/docker-entrypoint.sh: line 5: exec: php-fpm
I tried to restart the docker, delete the containers and restart, but nothing helps
docker-entrypoint.sh code:
#!/usr/bin/env bash
composer update
exec "$@"
I used to use ubuntu, now I have installed windows and now I get this error. Please tell me how I can solve this problem, I have spent more than 3 hours and no result (
docker-entrypoint.shscript? This looks like a syntax problem in there. Or possibly it uses an environment variable that is not set to the correct value.