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
Another way with xargs
xargs
docker image ls -q | xargs -I {} docker image rm -f {}