recently I wanted to run laravel, with docker, so I searched docker hub and found this image
.so I only share app and public according to the document given by him. There is no exception in external access, but I will report an error about missing package (because the vendor is different), so I can be sure that this image is fine.
but if I change and share the entire project -v $PWD/:/var/www/laravel
, which is currently in the root directory of the project, I will report an error:
I try to exec into the container, and executing curl localhost, inside the container will also make an error.
what is the reason for asking?