Remove Docker Images, Containers, and Volumes

Clean up any resources — images, containers, volumes, and networks — that are dangling (not tagged or associated with a container):

docker system prune

Remove any stopped containers and all unused images (not just dangling images):

docker system prune -a

Reference:

https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes