Maintenance

Stop all containers

docker stop $(docker ps -aq)

Remove all containers

docker rm -f $(docker ps -aq)

Attempt to Remove all images

docker rmi $(docker images -q)

Remove all containers and images

docker rm -f $(docker ps -aq) && docker rmi $(docker images -q)

Remove “dangling” images

docker rmi $(docker images -f "dangling=true" -q)