Containerd拉取命令
ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910
ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910 docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910
Ansible快速分发-Docker
#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910 && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910 docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910'
Ansible快速分发-Containerd
#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910 && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910 docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910'
镜像信息
{
"Id": "sha256:690ef3e34d41ba63a2deeed44a22e107249469cf5d0cb8da878b6a54decb8a78",
"RepoTags": [
"rancher/hardened-k8s-metrics-server:v0.7.1-build20240910",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240910"
],
"RepoDigests": [
"rancher/hardened-k8s-metrics-server@sha256:e2446965a2fb58b36c20347971626f3e6ff90a93040944475587dec81ef1f697",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-k8s-metrics-server@sha256:4767fe14d6c607557ef12b0678f4677b81661513a99a610349a13af17c67ae38"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-09-10T12:51:42.737268472Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": [
"/metrics-server"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 58884608,
"GraphDriver": {
"Data": {
"MergedDir": "/var/lib/docker/overlay2/8dc6eccce6ce7a618b39880464e0c5dba11cb46432b7eb452f9c80214508ae19/merged",
"UpperDir": "/var/lib/docker/overlay2/8dc6eccce6ce7a618b39880464e0c5dba11cb46432b7eb452f9c80214508ae19/diff",
"WorkDir": "/var/lib/docker/overlay2/8dc6eccce6ce7a618b39880464e0c5dba11cb46432b7eb452f9c80214508ae19/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:6db8658d0e0136d0620d45582e08664393ccc9c919233a999f6e1e47d2f917f3"
]
},
"Metadata": {
"LastTagTime": "2024-10-19T22:55:57.630991573+08:00"
}
}