docker image 指令

docker image ls -f dangling=true //查看虚悬镜像
[root@u95eau5e972u53f7 docker]# docker image prune //清空虚悬镜像
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
docker image ls -a //查看中间层镜像,其它镜像的依赖层不能删除
docker images ls --digests //镜像摘要
docker image  rm $(docker image ls -q -f before=mongo:3.2) //docker非常牛气的删除镜像办法
原文地址:https://www.cnblogs.com/jackey2015/p/11941362.html