Home >Operation and Maintenance >Docker >How docker delete temporary image files
In the process of building an image, we often need to use the build command to build the image according to the Dockerfile, and it will be built many times, and the image name is the same, so there will be many dangling images. (Temporary image file)
(Recommended tutorial: docker tutorial)
There are so many virtual images, for me For people with obsessive-compulsive disorder, looking at them is annoying, so you can use the following command to clear these dangling images
docker rmi $(docker images -q -f dangling=true)
The above is the detailed content of How docker delete temporary image files. For more information, please follow other related articles on the PHP Chinese website!