The basic usage of the command docker system prune is Remove unused data.
Removes all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes.
$ docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all build cache
Are you sure you want to continue? [y/N] y
Total reclaimed space: 1.84kB