Docker之删除container和image
删除所有停止的container:
docker rm $(docker ps -a -q)
删除所有未标记的image
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
删除所有image
docker rmi $(docker images | awk '{print $3}')
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/