abbabab
0
Q:

remove docker images

docker rmi $(docker images -a -q)
18
# List all containers (only IDs)
docker ps -aq
# Stop all running containers
docker stop $(docker ps -aq)
# Remove all containers
docker rm $(docker ps -aq)
# Remove all images
docker rmi $(docker images -q)
2
docker system prune -a
6
$images = docker images -a -q
foreach ($image in $images) { docker image rm $image -f }
1
docker image rm [OPTIONS] IMAGE [IMAGE...]
#[OPTIONS]
--force , -f		Force removal of the image
--no-prune		Do not delete untagged parents
6
docker image prune
0
docker image rm [OPTIONS] IMAGE_ID [IMAGE_ID...]
#[OPTIONS]
--force , -f		Force removal of the image
--no-prune		Do not delete untagged parents
2
docker image rm [OPTIONS] IMAGE [IMAGE...]
1

New to Communities?

Join the community