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
Provide filter values (e.g. 'label=<key>=<value>')
--force , -fDo not prompt for confirmation
How Classy Prune works in Docker, how to remove all old images, and several other commands that are useful when running Docker containers.