Red Hat Enterprise Linux 8 (RHEL8) 的新玩意 第3篇 之容器工具 skopeo, podman-docker
skopeo
名字挺奇怪,这个是用来做什么的呢? 这个其实是一个容器镜像的拷贝工具, 它可以将容器镜像在容器 registeries中拷贝. 而同时它具有对容器镜像的签名认证功能.
让我们来看看它的基本用法.
- 搜索容器镜像
- 比如我们可以从docker.io 上面来搜索fredora 的镜像
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35[root@vm3_rhel8 ~]# skopeo inspect docker://docker.io/fedora
{
"Name": "docker.io/library/fedora",
"Digest": "sha256:2a60898a6dd7da9964b0c59fedcf652e24bfff04142e5488f793c9e8156afd33",
"RepoTags": [
"20",
"21",
"22",
"23",
"24",
"25",
"26-modular",
"26",
"27",
"28",
"29",
"30",
"31",
"branched",
"heisenbug",
"latest",
"modular",
"rawhide"
],
"Created": "2019-03-12T00:20:38.300667849Z",
"DockerVersion": "18.06.1-ce",
"Labels": {
"maintainer": "Clement Verna \u003ccverna@fedoraproject.org\u003e"
},
"Architecture": "amd64",
"Os": "linux",
"Layers": [
"sha256:01eb078129a0d03c93822037082860a3fefdc15b0313f07c6e1c2168aef5401b"
]
} - 拷贝镜像 (TO BE CONTINUE )
1