Question - Do you know why docker system prune is used? What does it do?
Answer -
$ docker system prune
The above command is used to remove all the stopped containers, all the networks that are not used, all dangling images and all build caches. It’s one of the most useful docker commands.