[Docker] Prune Old Unused Docker Containers and Images
Posted Answer1215
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Docker] Prune Old Unused Docker Containers and Images相关的知识,希望对你有一定的参考价值。
In this lesson, we will look at docker container prune
to remove old docker containers. We can also use docker system prune
to clean up any containers, images, volumes, and networks all in one command.
This will remove all containers that are not currently running.
docker container prune
The same as images:
docker image prune
You can also use:
docker system prune
to clean volumes, images, and containers.
Use docker system prune -a to remove not only all dangled images, but all unused images as well.
docker system prune -a
以上是关于[Docker] Prune Old Unused Docker Containers and Images的主要内容,如果未能解决你的问题,请参考以下文章
docker 执行 docker system prune 导致Azure Devops build镜像失败