prune 命令用来删除不再使用的 docker 对象。删除所有未被 tag 标记和未被容器使用的镜像:$ docker image pruneWARNING! This will remove all dangling images.Are you sure you want to continue? [y/N] y删除所有未被容器使用的镜像:$ docker image prune -a删除所有停止运行的容器:$ docker container prune删除所有未被挂载的卷:$ docker volume prune删除所有网络:$ docker network prune删除 docker 所有资源:
顶: 1401630踩: 0323221$ docker system prune

评论专区