看到某github项目上有好多人提出了此问题,却没有解决。
最后找到一位外国网友解决了此问题:他的博客链接:https://www.myerrorsandmysolutions.com/docker-error-response-from-daemon-removal-of-container-is-already-in-progress/
You run one of the following PowerShell commands to remove a container
Remove-NavContainer ###
or
docker rm ###
but you receive the following error message:
docker : Error response from daemon: removal of container ### is already in progress
with the result that you are unable to stop, kill or remove the Docker container. Even a restart does not fix this issue.
Solution 1:
- Run the PowerShell command
net stop docker
to stop docker-engine (Note all containers will stop) - Delete the folder in
C:Programdatadockercontainers
whose name starts with the ID from the error message (###) - Run the PowerShell command
net start docker
to start docker-engine
Solution 2:
Restart the machine will restart docker-engine if it the service is set up to start Automatically.
Did my solution solve your problem? Leave a reply.