docker 虚悬镜像

虚悬镜像(dangling image): 镜像没有仓库名或没有标签
查询显示虚悬镜像

docker images -f dangling=true

删除虚悬镜像

docker rmi $(docker images -q -f dangling=true)
原文地址:https://www.cnblogs.com/yanghj0205/p/11007732.html