[英]Cannot remove Docker Container from Docker Desktop
I'm trying to remove a container on the Docker Desktop applicaiton.我正在尝试删除 Docker 桌面应用程序上的容器。 (v3.6.0 Mac)
(v3.6.0 Mac)
Cannot remove Docker Compose application.
无法删除 Docker 撰写应用程序。 Reason: Error invoking remote method 'compose-action': Error: Command failed: docker-compose --file "docker-compose.yaml" --project-name "tos-apps" --project-directory "/Users/kunalojha/Desktop/tos-apps" down time="2021-08-22T18:40:00-05:00" level=warning msg="The "UID" variable is not set. Defaulting to a blank string."
原因:调用远程方法“compose-action”时出错:错误:命令失败:docker-compose --file "docker-compose.yaml" --project-name "tos-apps" --project-directory "/Users/kunalojha/Desktop /tos-apps" down time="2021-08-22T18:40:00-05:00" level=warning msg="未设置“UID”变量。默认为空字符串。 time="2021-08-22T18:40:00-05:00" level=warning msg="The "UID" variable is not set. Defaulting to a blank string."
time="2021-08-22T18:40:00-05:00" level=warning msg="未设置“UID”变量。默认为空字符串。 services.redis.user must be a string
services.redis.user 必须是字符串
It seems to throw this message anytime I attempt to close it.似乎每当我尝试关闭它时都会抛出此消息。 I have seen a github issue opened regarding this and closed after a new release, but i'm still facing the same issue.
我已经看到一个 github 问题就此打开并在新版本发布后关闭,但我仍然面临同样的问题。 Any thoughts on how to resolve this?
关于如何解决这个问题的任何想法?
This is how I solved an issue similar to this one:这就是我解决与此类似的问题的方法:
Find the container id using docker ps
- docker ps -a
will show all containers, docker ps -l
the last created container.使用
docker ps
查找容器 ID - docker ps -a
将显示所有容器, docker ps -l
最后创建的容器。
Than remove all the containers for the application individually eg docker rm c52b93c43544
.比单独删除应用程序的所有容器,例如
docker rm c52b93c43544
。
The solution is to remove the items one by one via their container id in the terminal:解决方案是通过终端中的容器 ID 将项目一一删除:
Find the container id using使用查找容器 ID
docker ps -a
Delete the container via its id.通过其 ID 删除容器。
docker rm <container-id>
You can try to remove the container or containers in the cmd.exe您可以尝试删除 cmd.exe 中的一个或多个容器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.