atomboulian of Attainia
10/25/2017 - 1:35 AM

Kill all containers, then remove all containers, then remove all images

I run this once to kill, twice to remove my containers, and 3 times to clear my images.

Then I often run an alias for ''docker-compose --file docker-compose.local.yml up' to rebuild or start again.

alias dockerclearall='docker kill $(docker ps -q) || docker rm $(docker ps -a -q) || docker rmi $(docker images -q)'