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)