Answers for "how to remove all images and containers"

1

docker remove all containers and images

docker container rm $(docker container ls -aq)
Posted by: Guest on September-04-2020
0

remove all docker images

$images = docker images -a -q
foreach ($image in $images) { docker image rm $image -f }
Posted by: Guest on November-19-2020

Code answers related to "how to remove all images and containers"

Browse Popular Code Answers by Language