• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Y-wee
博客园    首页    新随笔    联系   管理     

docker 虚悬镜像

docker 虚悬镜像

虚悬镜像:仓库名、标签都是<none>的镜像,俗称 dangling image

查看本地所有虚悬镜像

[root@zookeeper1 Dockerfile]# docker image ls -f dangling=true
REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
<none>       <none>    b35e77922a8b   55 minutes ago   231MB

虚悬镜像没有存在的价值,删除所有虚悬镜像

[root@zookeeper1 Dockerfile]# docker image prune
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
Deleted Images:
deleted: sha256:b35e77922a8b92c54dbfbce9219efac873ec41cbfce6b70530fc1acc50cc4169
deleted: sha256:cf9873321bbaf26c34dc0f523ec7d08295c8d55347e2d124f868550bfb97b5eb
deleted: sha256:1bf28b309f7e8d22ea9eab9dcfc28cdf35230eecabcb983f25761baf8af666eb

Total reclaimed space: 0B
记得快乐
posted @ 2021-03-11 09:44  Y-wee  阅读(198)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3