Ansible快速分发-Docker
#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910 && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910 docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910'
Ansible快速分发-Containerd
#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910 && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910 docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910'
镜像信息
{
"Id": "sha256:19f8e656ed901d1063ee554fa072f1618aa6ce975ae58400d031eab6be7856d6",
"RepoTags": [
"rancher/hardened-etcd:v3.5.13-k3s1-build20240910",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240910"
],
"RepoDigests": [
"rancher/hardened-etcd@sha256:aab0615152a890ae971b2211afb2a5f377ea2048431aae0e9ff0776b276c3c84",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd@sha256:258f02ccedfe2e2385ea2da075aa9de1af289bef350725579952e9a7da785033"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-09-10T20:37:33.005900007Z",
"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",
"ETCD_UNSUPPORTED_ARCH="
],
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 45926916,
"GraphDriver": {
"Data": {
"MergedDir": "/var/lib/docker/overlay2/b8b28219cc4ed44444860ce9cffcdbddd7fa4c297ad883664e1d7de898f0d3f3/merged",
"UpperDir": "/var/lib/docker/overlay2/b8b28219cc4ed44444860ce9cffcdbddd7fa4c297ad883664e1d7de898f0d3f3/diff",
"WorkDir": "/var/lib/docker/overlay2/b8b28219cc4ed44444860ce9cffcdbddd7fa4c297ad883664e1d7de898f0d3f3/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:347a3a2fa3815a1320e5dc294f2e155024a9d0c3f2c606f202db07a8c0bdcf2b"
]
},
"Metadata": {
"LastTagTime": "2024-10-19T22:54:23.504842814+08:00"
}
}