Ansible快速分发-Docker
#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec'
Ansible快速分发-Containerd
#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec'
镜像信息
{
"Id": "sha256:5d3a9559d8f660165d95f418c0534634e9bd5c8e715a50ced4a7de556be43be6",
"RepoTags": [
"quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/kubevirt/virtio-container-disk:20241121_a95b4f95ec"
],
"RepoDigests": [
"quay.io/kubevirt/virtio-container-disk@sha256:66e18ad616768642313ff392981fa871831546eebe9c6963243c02426e6fadf8",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/kubevirt/virtio-container-disk@sha256:db74c585df993e065e3a532b8c2a330179b42344fae244e3c58544b9eecd2853"
],
"Parent": "",
"Comment": "",
"Created": "1970-01-01T00:00:00Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "Bazel",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 732352512,
"GraphDriver": {
"Data": {
"MergedDir": "/var/lib/docker/overlay2/c39a040b5369a86b25e4abd2aa231bcd1084cfa1af40f8313fc3b1804e1b8456/merged",
"UpperDir": "/var/lib/docker/overlay2/c39a040b5369a86b25e4abd2aa231bcd1084cfa1af40f8313fc3b1804e1b8456/diff",
"WorkDir": "/var/lib/docker/overlay2/c39a040b5369a86b25e4abd2aa231bcd1084cfa1af40f8313fc3b1804e1b8456/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:b81966f222f8a97976961e63b146f68ba682dc7d2e326d2b94772729cded0eb2"
]
},
"Metadata": {
"LastTagTime": "2024-11-21T18:04:26.196851146+08:00"
}
}