docker bulk delete container, mirror
1, remove all containers
docker rm `docker ps -a -q`
2, delete all mirrors
docker rmi `docker images -q`
3, according to the condition to remove the mirror
He did not play tag
docker rmi `docker images -q | awk '/^<none>/ { print $3 }'`
Mirroring name contains the keyword
docker rmi --force `docker images | grep doss-api | awk '{print $ 3}'` // keywords which doss-api
1, remove all containers
docker rm `docker ps -a -q`
2, delete all mirrors
docker rmi `docker images -q`
3, according to the condition to remove the mirror
He did not play tag
docker rmi `docker images -q | awk '/^<none>/ { print $3 }'`
Mirroring name contains the keyword
docker rmi --force `docker images | grep doss-api | awk '{print $ 3}'` // keywords which doss-api