docker system prune will delete ALL dangling data (i.e. In order: containers stopped, volumes without containers and images with no containers). Even unused data, with
You also have:
For unused images, use
docker image prune -a (for removing dangling and ununsed images).
Warning: ‘unused‘ means “images not referenced by any container”: be careful before using
The currently supported filters are:
until (<timestamp>)– only remove containers, images, and networks created before given timestamp
label!=<key>=<value>) – only remove containers, images, networks, and volumes with (or without, in case
label!=...is used) the specified labels.
See “Prune images” for an example.