docker rmi $(docker images | grep "^<none>" | awk "{print $3}") --force
# docker ps -a -q -> will return all ids of all containers docker stop $(docker ps -a -q) docker