Cannot stop or restart a docker container

前端 未结 10 1184
别跟我提以往
别跟我提以往 2021-01-30 01:54

When trying to stop or restart a docker container I\'m getting the following error message:

$ docker restart 5ba0a86f36ea
Error response from daemon: Cannot rest         


        
10条回答
  •  既然无缘
    2021-01-30 02:38

    I had the same problem on a windows host machine and none of the other options here worked for me. I ended up just needing to delete the physical container folder, which was located here:

    C:\ProgramData\Docker\containers\[container guid]
    

    I had stopped the docker service first just to be safe and when I restarted it, the broken containers were now gone and I was able to create new ones. I suspect the same will work on a linux host machine, but I do not know where the container folders are kept on that OS.

提交回复
热议问题