Docker - Cannot remove dead container

后端 未结 20 1717
清歌不尽
清歌不尽 2020-12-22 16:28

I am unable to remove the dead container, it appears again after i restart the Docker service.

docker ps -a
CONTAINER ID         STATUS          
11667ef1623         


        
20条回答
  •  滥情空心
    2020-12-22 17:10

    Try running the following commands. It always works for me.

    # docker volume rm $(docker volume ls -qf dangling=true)
    # docker rm $(docker ps -q -f 'status=exited')
    

    After execution of the above commands, restart docker by,

    # service docker restart
    

提交回复
热议问题