Ansible快速分发-Docker
#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910 && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910 docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910'
Ansible快速分发-Containerd
#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910 && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910 docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910'
镜像信息
{
"Id": "sha256:30f3b571842651d963f01217d19b160756dc5a6e41db6128d1d21b8eace7cc43",
"RepoTags": [
"rancher/rke2-cloud-provider:v1.30.4-build20240910",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/rke2-cloud-provider:v1.30.4-build20240910"
],
"RepoDigests": [
"rancher/rke2-cloud-provider@sha256:e6d4c88c8cd870e828e1aa7bd5bed687e254dae7738b8c95baa6255c90964e0d",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/rke2-cloud-provider@sha256:bf4c1eb963277a1425ccbe63bbdd132982c8afede28ed90b0079df1c63c46c7e"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-09-10T21:26:25.491996458Z",
"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": [
"/usr/local/bin/cloud-controller-manager"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 66203426,
"GraphDriver": {
"Data": {
"MergedDir": "/var/lib/docker/overlay2/7b4f948e5a3ab1918b2fe0780872205ed4af5e4c75f4d7c0c56c13efd16760f5/merged",
"UpperDir": "/var/lib/docker/overlay2/7b4f948e5a3ab1918b2fe0780872205ed4af5e4c75f4d7c0c56c13efd16760f5/diff",
"WorkDir": "/var/lib/docker/overlay2/7b4f948e5a3ab1918b2fe0780872205ed4af5e4c75f4d7c0c56c13efd16760f5/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:dc637cfec01c3e50771337df7eb53164ee6a81a04411136990338160d24c5084"
]
},
"Metadata": {
"LastTagTime": "2024-10-19T23:16:06.068339472+08:00"
}
}