云计算核心技术Docker教程:prune 命令详解
2026-11-12 热点
prune 命令用来删除不再使用的 docker云计 对象。
删除所有未被 tag 标记和未被容器使用的镜像:
$算核 docker image prune
WARNING心技! This will remove all dangling术D images.
Are you sure you waocnt to continue? [y/N] y
删除所有未被容ke器使用的镜像:
$ docker image prune -a
删r教除所有停止运行的容器:
$ docker conta程:iner prune
删除所有未被挂载的卷:
$ dprocker volume prune
删除所有网络:
$ docunker network prune
删除 dockere 所有资源:
$ docker system prune




