Home > OS >  How to fix error respone from daemon error when running sail after deleting all containers?
How to fix error respone from daemon error when running sail after deleting all containers?

Time:08-11

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:

Screenshot

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:

  1. Run sail build
  2. Run sail up -d
  • Related