Wanted to install laravel under windows 10 using git bash and it keeps giving me an error:
docker run --rm -v /d/programming/test/:/opt -w /opt laravelsail/php80-composer:latest bash -c "laravel new example-app && cd example-app && php ./artisan sail:install --with=mysql,redis,meilisearch,mailhog,selenium"
Error: docker: Error response from daemon: the working directory 'C:/Program Files/Git/opt' is invalid, it needs to be an absolute path.
I've tried $(pwd), d:\...... /d/.... but it keeps giving that error.
No idea how to resolve this :-/
That's from Git Bash, it's converting paths to it's directory. To override that, use a double slash on the paths:
docker run --rm -v //d/programming/test/:/opt -w //opt laravelsail/php80-composer:latest bash -c "laravel new example-app && cd example-app && php ./artisan sail:install --with=mysql,redis,meilisearch,mailhog,selenium"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With