I recently started using Docker and never realized that I should use docker-compose down instead of ctrl-c or docker-compose stop to get r
docker-compose down
ctrl-c
docker-compose stop
To delete all images:
docker rmi -f $(docker images -a | awk {'print $3'})
Explanation:
docker images -a | awk {'print $3'}
This command will return all image id's and then used to delete image using its id.