docker system prune
移除未使用的资源
示例
移除未使用的资源
$ docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Deleted Containers:
f97978930843610996841e065bfd2fc99478f79f535a228308c02ed3a2468301
6f753c15d0862550186718d09795029e0757279326e1074558e078c1873e35a7
Deleted Networks:
my-network
Deleted Images:
deleted: sha256:7205edb06f7df203206a4b170a484c987913364f8490a18414436c64603306f1
deleted: sha256:e0084f6764434a946851b47318f773347f98c41d1a938c35058097d745a90947
Deleted build cache objects:
6b9d8858d4a6a570c946654a1d9539d09c3132799f243004481d31061f09633e
Total reclaimed space: 115.3MB使用过滤条件进行清理
移除包含卷的未使用资源
最后更新于