If that you must take away any previous and unused Docker pictures, then you are able to do the next:
The best way to Take away Previous and Unused Docker Pictures
Firstly that you must see all the pictures:
docker pictures
It’s also possible to use ls
to see the Docker Pictures:
docker picture ls
The best way to Take away a Single Docker Picture
The docker rmi
command will take away a single Docker picture as follows:
docker rmi <image_id>
It’s also possible to use the Docker picture names as follows:
docker rmi ubuntu one thing
The best way to Take away Dangling Docker Pictures
docker pictures -f dangling=true
It’s additionally potential to prune
pictures as follows:
docker picture prune
It’s also possible to routinely discover all the pictures and take away them straight:
docker rmi $(docker pictures -q -a)