如何修复删除所有容器后运行sail时后台程序错误的错误响应



我正在创建一个Laravel/VueJS SPA。一直以来,它都在工作,但只有一次运行sail up -d时显示http://localhost出现the site can't be reached错误。

我已经通过运行docker image prune -adocker system prune -a删除了所有容器,但http://localhost仍然显示the site can't be reached错误。

然后我删除了vendorcomposer.lock,再次运行composer install,安装了sail,然后运行sail up -d。运行后,我得到了一个Error response from daemon: error while creating mount source path error。参见错误截图:

屏幕截图

我试图创建提到的文件夹,但不确定在mac中的哪里创建。有什么建议吗?

非常感谢您的帮助。

在删除容器之前,您必须停止第一个

docker stop <container IDs | container names>

然后

docker rm <container IDs | container names>

docker image prune -a->命令允许您清理未使用的图像

docker system prune -a->这也不会删除正在运行的容器

我通过解决了这个问题

  1. 运行sail build
  2. 运行sail up -d

最新更新