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.
2
Answers
I fixed this by:
sail build
sail up -d
Before delete container, you must stop first
Then
docker image prune -a
–> command allows you to clean up unused imagesdocker system prune -a
—> This also will not delete running containers