Ansible快速分发-Docker
#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/perconalab/version-service:production-2048c1f && docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/perconalab/version-service:production-2048c1f docker.io/perconalab/version-service:production-2048c1f'
Ansible快速分发-Containerd
#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/perconalab/version-service:production-2048c1f && ctr images tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/perconalab/version-service:production-2048c1f docker.io/perconalab/version-service:production-2048c1f'
镜像构建历史
# 2024-04-17 23:14:01 0.00B
/bin/sh -c #(nop) ENTRYPOINT ["/app"]
# 2024-04-17 23:14:00 283.96KB
/bin/sh -c #(nop) COPY dir:7c3bf562d3b59dae8ea00663c87e8ac78eff407df2606f667ac44e479e870170 in /sources
# 2024-04-17 23:14:00 29.35MB
/bin/sh -c #(nop) COPY file:adf46f48e6f47a4c11c4de07da30dace3747d48146f08a7dd41936b92bc82d17 in /
镜像信息
{
"Id": "sha256:d135e9804cfee7fffb4297e59b1dab6c1814fca8e7158ffdfdf66a1ecea8bb87",
"RepoTags": [
"perconalab/version-service:production-2048c1f",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/perconalab/version-service:production-2048c1f"
],
"RepoDigests": [
"perconalab/version-service@sha256:13f68e1d048fd9efc019daf1c5ad57e364c9effcd1d29f9e382cfc9c2666a5e3",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/perconalab/version-service@sha256:13f68e1d048fd9efc019daf1c5ad57e364c9effcd1d29f9e382cfc9c2666a5e3"
],
"Parent": "",
"Comment": "",
"Created": "2024-04-17T15:14:01.100570197Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "20.10.25",
"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": "sha256:728fb14771fc7f0761ab66a10816b048f97f71e13ef960ed4a1760c1c104f7c4",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/app"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 29633655,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/260dd1e328ac74797d02df4a50166830acc0d749e39b22427a6157314a4cfb26/diff",
"MergedDir": "/var/lib/docker/overlay2/da0e44bde6076715c3f736715b7502e365edc2fad0c99d88626250ced9739266/merged",
"UpperDir": "/var/lib/docker/overlay2/da0e44bde6076715c3f736715b7502e365edc2fad0c99d88626250ced9739266/diff",
"WorkDir": "/var/lib/docker/overlay2/da0e44bde6076715c3f736715b7502e365edc2fad0c99d88626250ced9739266/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:702efba1daf6ef81113347f56f1fcbc6df9087e896c9009db4458da62706b549",
"sha256:048fbcf12c689350be16fc036e5ad0627b9de11f8a6a223f4edaecf1ffa48679"
]
},
"Metadata": {
"LastTagTime": "2025-03-19T21:20:24.953485126+08:00"
}
}