Docker manifest指令
作者:互联网
官网说明
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
,可以看到这个镜像就是同时支持amd64
和arm64
架构的。
➜ /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