Ansible快速分发-Docker
#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1 && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1 docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1'
Ansible快速分发-Containerd
#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1 && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1 docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1'
镜像信息
{
"Id": "sha256:eb0471ae62d7726b8bd582d1df0a9b1c7d113fd30349513196cbd0dd794cb4f4",
"RepoTags": [
"rancher/system-agent-installer-rke2:v1.31.12-rke2r1",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/system-agent-installer-rke2:v1.31.12-rke2r1"
],
"RepoDigests": [
"rancher/system-agent-installer-rke2@sha256:375396af402fcf0b41204db81cafe71064b78d5816c11e72bd118254d12229f2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/system-agent-installer-rke2@sha256:df8c998519cc445077bd1d730bb408b7d9f709da0b3fa0b8312bca8760293df4"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-08-23T01:38:15.591001342Z",
"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": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 37941438,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8df75acd393a57595e31366cfad121d7b9678fcac0ebac3652937074f0c0d384/diff",
"MergedDir": "/var/lib/docker/overlay2/f5b59cc2dc94f4d6ed986b42557b17ce597894f6d8ccb02771d2579e4fde4693/merged",
"UpperDir": "/var/lib/docker/overlay2/f5b59cc2dc94f4d6ed986b42557b17ce597894f6d8ccb02771d2579e4fde4693/diff",
"WorkDir": "/var/lib/docker/overlay2/f5b59cc2dc94f4d6ed986b42557b17ce597894f6d8ccb02771d2579e4fde4693/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:9f1fb300c32bf973f6a07261d64481141f0980b50cbb3ff1b6503ae85c5baa4c",
"sha256:a6bcc497a2fe31c966f14786188e6d8e74b5d708b8cf8f3c1336638b14ba74dd"
]
},
"Metadata": {
"LastTagTime": "2025-10-16T20:37:28.637069199+08:00"
}
}