栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

docker registry 镜像仓库镜像删除

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

docker registry 镜像仓库镜像删除

[hadoop@hadoop03 module]$ curl -v --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X GET  hadoop03:5000/v2/nufront-hadoop/manifests/v2 2>&1 | grep Docker-Content-Digest | awk '{print ($3)}'
...
sha256:369b13739e860d28d2544b21167b066bf931d87f47ac7118890a974e0576b47f

[hadoop@hadoop03 module]$ curl -v --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X DELETE hadoop03:5000/v2/nufront-hadoop/manifests/sha256:369b13739e860d28d2544b21167b066bf931d87f47ac7118890a974e0576b47f

/ # cat /etc/docker/registry/config.yml
version: 0.1
log:
  fields:
    service: registry
storage:
  cache:
    blobdescriptor: inmemory
  filesystem:
    rootdirectory: /var/lib/registry
  delete:    ### 
    enabled: true  
http:
  addr: :5000
  headers:
    X-Content-Type-Options: [nosniff]
health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3

参考:http://dockone.io/question/883
https://docs.docker.com/registry/configuration/#delete

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/973236.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号