abhi's logbook

Adventures in coding and coding for adventures.

Docker

Stop all containers

sudo docker ps -q | xargs sudo docker stop

Removing containers

sudo docker ps -a -q -notrunc | xargs sudo docker rm

Removing images

sudo docker images | grep ay-app | awk '{ print $3 }' | xargs sudo docker rmi