docker ps
docker ps -a
其中字符串为容器ID:
docker exec -it d27bd3008ad9 /bin/bash
docker stop $(docker ps -q)
docker rm $(docker ps -aq)
docker stop $(docker ps -q) && docker rm $(docker ps -aq)
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:Docker 快速删除所有容器