I'm creating a Laravel/VueJS SPA. All the way, it was working however, just one time running sail up -d
showed http://localhost
with the site can't be reached
error.
I have deleted all containers by running docker image prune -a
and docker system prune -a
but http://localhost
was still showing the site can't be reached
error.
Then I deleted vendor
and composer.lock
, run composer install
again, installed sail, then run sail up -d
. After running it I got an Error response from daemon: error while creating mount source path error
. See screenshot of error:
I was attempting to create the folder mentioned but not sure where to create it in mac. Any advise how to fix this?
Any help is much appreciated.
CodePudding user response:
Before delete container, you must stop first
docker stop <container IDs | container names>
Then
docker rm <container IDs | container names>
docker image prune -a
--> command allows you to clean up unused images
docker system prune -a
---> This also will not delete running containers
CodePudding user response:
I fixed this by:
- Run
sail build
- Run
sail up -d