If it’s worthwhile to take away any outdated and unused Docker pictures, then you are able to do the next:
Methods to Take away Outdated and Unused Docker Photos
Firstly it’s worthwhile to see all the pictures:
docker pictures
You can too use ls
to see the Docker Photos:
docker picture ls
Methods to Take away a Single Docker Picture
The docker rmi
command will take away a single Docker picture as follows:
docker rmi <image_id>
You can too use the Docker picture names as follows:
docker rmi ubuntu one thing
Methods to Take away Dangling Docker Photos
docker pictures -f dangling=true
It’s additionally potential to prune
pictures as follows:
docker picture prune
You can too routinely discover all the pictures and take away them instantly:
docker rmi $(docker pictures -q -a)