Home  >  Article  >  Operation and Maintenance  >  How docker delete temporary image files

How docker delete temporary image files

王林
王林forward
2020-09-11 16:08:203809browse

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)

How docker delete temporary image files

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete