top of page

Profile

Join date: Sep 15, 2022

About

How does System Prune work in Docker?

The System Prune process will remove all old containers and images from the system, keeping only the active ones. This is equivalent to unmounting a folder or deleting it from a file system. Docker system prune volumes helps you manage your resources and improve the performance of your containers. It does this by dynamically removing files that are unused on your system.

remove stopped containers

docker system prune [OPTIONS]

--all , -aRemove all unused images not just dangling ones

--filterAPI 1.28+

Provide filter values (e.g. 'label=<key>=<value>')

--force , -fDo not prompt for confirmation

--volumesPrune volumes


Source:https://codeprozone.com/code/shell/150321/docker-system-prune.html

How Classy Prune works in Docker, how to remove all old images, and several other commands that are useful when running Docker containers.

abakhsh

More actions
bottom of page