Remove unnamed images: docker rmi $(docker images | grep "<none>" | awk '{ print $3 }') Remove stopped containers: docker rm $(docker ps -a -q)