ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Docker manifest指令

2021-12-28 19:36:30  阅读:224  来源: 互联网

标签:list 样例 manifest 指令 experimental Docker docker digest


官网说明

https://docs.docker.com/engine/reference/commandline/manifest/

使用样例

未开启 experimental 特性,无法使用manifest指令

[root@thatscode.com ~]# docker manifest inspec docker:17.05
docker manifest is only supported on a Docker cli with experimental cli features enabled
[root@thatscode.com ~]#

开启experimental的测试样例

下面为在MacOS上开启experimental特性之后实际测试的一个输出,查看的镜像为elasticsearch的一个官方镜像,elasticsearch:7.16.2,可以看到这个镜像就是同时支持amd64arm64架构的。

➜ /Users/stephen/Documents/WorkDir/docker >docker manifest inspect elasticsearch:7.16.2
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 2204,
         "digest": "sha256:3e82c0aefb87f2b716d0d09ffc252076b200a05eb1692c795dcb5c3057952477",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 2204,
         "digest": "sha256:5837d1482e31630c7c8f0b309743361c260c50749dd2ca14d96b8950f727993b",
         "platform": {
            "architecture": "arm64",
            "os": "linux",
            "variant": "v8"
         }
      }
   ]
}

manifest里都可以包含哪些信息?

A single manifest is information about an image, such as layers, size, and digest. The docker manifest command also gives users additional information such as the os and architecture an image was built for.
  • layers
  • size
  • digest
  • os/arch

manifest都有哪些子命令?

Command Description
docker manifest annotate Add additional information to a local image manifest
docker manifest create Create a local manifest list for annotating and pushing to a registry
docker manifest inspect Display an image manifest, or manifest list
docker manifest push Push a manifest list to a repository
docker manifest rm Delete one or more manifest lists from local storage

标签:list,样例,manifest,指令,experimental,Docker,docker,digest
来源: https://www.cnblogs.com/thatsit/p/docker-manifest-zhi-ling.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有