|
prune 命令用来删除不再使用的 docker云计 对象。
删除所有未被 tag 标记和未被容器使用的镜像:
$算核 docker image prune
WARNING!心技 This will remove all danglin术Dg images.
Are you sure you wanoct to continue? [y/N] y
删除所有未ke被容器使用的镜像:
$ docker image prunr教e -a
删除所有停止运行的容器:
$ docker co程:ntainer prune
删除所有未被挂载的卷:
$pr docker volume prune
删除所有网络:
$ douncker network prune
删除 docker 所有资e 源:
$ docker system prune
|