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-build20240531 && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240531 docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240531'
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-build20240531 && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240531 docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240531'
镜像信息
{
"Id": "sha256:3497a0129694415d452b5380cec24d3602e9b3ddebd9c824ef27648b6ceba58c",
"RepoTags": [
"rancher/hardened-etcd:v3.5.13-k3s1-build20240531",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240531"
],
"RepoDigests": [
"rancher/hardened-etcd@sha256:3d27d316d2ae243400c9aa16d91c5b4cb90733c2e89232329e4500bd1255f34a",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/hardened-etcd@sha256:82e3bbe572339327f1026d20c3f4cb0592a54d95b26bfe4dc42a8aa8112373c2"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-05-31T22:02:34.531573749Z",
"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": 45810912,
"GraphDriver": {
"Data": {
"MergedDir": "/var/lib/docker/overlay2/d606bc5fa0573e3cee15071383827879e2f963629162f76a5c4fb5daef862f2b/merged",
"UpperDir": "/var/lib/docker/overlay2/d606bc5fa0573e3cee15071383827879e2f963629162f76a5c4fb5daef862f2b/diff",
"WorkDir": "/var/lib/docker/overlay2/d606bc5fa0573e3cee15071383827879e2f963629162f76a5c4fb5daef862f2b/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:8da097122614dd897c60fe2be49e81d3d659058fdc78bc3427476c74498ba7dd"
]
},
"Metadata": {
"LastTagTime": "2024-10-20T14:33:56.45787876+08:00"
}
}