[英]Error response from daemon: No such container:
I want to stop container, but I always get this error and facing wired problem.我想停止容器,但我总是收到此错误并面临有线问题。
When I tried to stop container by using docker-compose down
, the error says in below.当我尝试使用
docker-compose down
停止容器docker-compose down
,错误如下所示。
$ docker-compose down
Removing network rails_api_default
ERROR: error while removing network: network rails_api_default id ... has active endpoints
So, I inspect the network and tried to stop container, however it says there is no container.所以,我检查了网络并试图停止容器,但是它说没有容器。
$ docker network inspect rails_api_default
[
{
"Name": "rails_api_default",
"Id": "e22a339dc85a3d7ce7c60bcab218bd939ff9f5578addb6b1d937b5e9ba1f2e7e",
....
"Containers": {
"966766894bfb110d4a66963f5af423d9f8e2e33a8259e1cca0ced238e5980196": {
"Name": "966766894bfb_rails_api_app_1",
....
}
},
}
]
$ docker stop 966766894bfb_rails_api_app_1
Error response from daemon: No such container: 966766894bfb_rails_api_app_1
Does anyone know what it 966766894bfb_rails_api_app_1
, and why this happens?有谁知道它
966766894bfb_rails_api_app_1
是什么,为什么会发生这种情况?
That is probably an old container that may have failed at some point.那可能是一个可能在某个时候出现故障的旧容器。 Check if you can see it with
docker ps -a
and remove it with docker rm <containerName>
.检查您是否可以使用
docker ps -a
看到它并使用docker rm <containerName>
将其删除。 If you cannot see it, try如果您看不到它,请尝试
docker network disconnect -f <networkName> <networkName>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.