Docker removes all unnamed images

In the process of building an image, we may generate some temporary images that do not have a name or function. Their names are generally the same <none>. We can execute the following command to clear them:

docker rmi $(docker images -f "dangling=true" -q)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324982351&siteId=291194637