[英]Docker Compose - Remove dangling service
While getting to know docker and docker compose, I removed a volume that was still in use by docker compose. 在了解docker和docker compose的同时,我删除了仍由docker compose使用的卷。
Now, docker compose prints the following error message for everything I try to do (stop, start, ps, rm, ...): 现在,docker compose为我尝试的所有内容打印以下错误消息(stop,start,ps,rm,...):
ERROR: Named volume "db_data:/var/lib/mysql:rw" is used in service "db" but no declaration was found in the volumes section.
错误:命名卷“db_data:/ var / lib / mysql:rw”在服务“db”中使用,但未在卷部分中找到声明。
Therefore, I am now unable to work with docker compose in any way. 因此,我现在无法以任何方式使用docker compose。 As I am out of ideas, I am reaching out for some support.
由于我没有想法,我正在寻求一些支持。
Checkout this excellent post about how to clean Docker leftovers (containers / volumes..) 查看这篇关于如何清理Docker剩余物(容器/卷......)的优秀文章
http://blog.yohanliyanage.com/2015/05/docker-clean-up-after-yourself/ http://blog.yohanliyanage.com/2015/05/docker-clean-up-after-yourself/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.