简体   繁体   English

无法删除 docker 桌面中的 docker 应用程序和容器

[英]Cannot remove docker application and container in docker desktop

This nodedocker docker application has been stuck on my docker desktop for a while now.这个nodedocker docker 应用程序已经卡在我的 docker 桌面上一段时间了。 I've tried deleting it numerous times to no avail.我已经尝试删除它无数次,但无济于事。 Running docker ps shows no running container.运行docker ps显示没有运行容器。 I even tried deleting the container nodedocker_database_1 , but the results the same.我什至尝试删除容器nodedocker_database_1 ,但结果相同。 Running docker compose down -v tears down all other containers except for this one.运行docker compose down -v拆除除此之外的所有其他容器。 Any sort of lead would be helpful.任何形式的铅都会有所帮助。

在此处输入图像描述

Usually closing and restarting docker desktop fixes the issue.通常关闭并重新启动 docker 桌面可以解决此问题。

I faced a similar problem -- individually removing all the containers via the app GUI resulted in the app being removed as well.我遇到了类似的问题——通过应用程序 GUI 单独删除所有容器导致应用程序也被删除。

You can remove with terminal using this commands:您可以使用以下命令通过终端删除:

  • To list all containers with id and other infos列出所有带有 id 和其他信息的容器

    docker ps -a docker ps -a

to remove the container:移除容器:

docker rm "idOfContainer" without ""

don't try to delete the container group.不要尝试删除容器组。 If you delete the containers under the group one by one, your problem will be solved.如果您将组下的容器一一删除,您的问题将得到解决。 The group is already deleted automatically.该组已被自动删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM