MarcusSpecht
9/8/2018 - 10:07 PM

docker

docker

CONTAINER

list all containers (only IDs)

`docker ps -aq

stop all running containers

docker stop $(docker ps -aq)

remove all containers

docker rm $(docker ps -a -q)

IMAGE

list all images

docker images "dangling=true" -q

delete all images even dependant ones (-force)

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