- 删除未使用的镜像
docker image prune -a
- 删除未使用的卷
docker volume prune
- 删除未使用的网络
docker network prune
- 删除停止的容器、未使用的镜像、卷和网络
docker system prune
- 清理不再使用的数据
docker system prune -a --volumes
docker image prune -a
docker volume prune
docker network prune
docker system prune
docker system prune -a --volumes