推送多架构镜像到同一仓库

合并多架构镜像,在amd机器上操作:

1. 下载amd镜像,并重新tag

docker pull registry.k8s.io/ingress-nginx/nginx:0b5e0685112e4537ee20a0bdbba451e9f6158aa3@sha256:3f5e28bb248d5170e77b77fc2a1a385724aeff41a0b34b5afad7dd9cf93de000

docker tag registry.k8s.io/ingress-nginx/nginx:0b5e0685112e4537ee20a0bdbba451e9f6158aa3@sha256:3f5e28bb248d5170e77b77fc2a1a385724aeff41a0b34b5afad7dd9cf93de000 registry.cn-hangzhou.aliyuncs.com/earl-k8s/ingress-nginx-nginx:0b5e0685112e4537ee20a0bdbba451e9f6158aa3-amd64

docker push registry.cn-hangzhou.aliyuncs.com/earl-k8s/ingress-nginx-nginx:0b5e0685112e4537ee20a0bdbba451e9f6158aa3-amd64

2. 下载arm镜像,并重新tag

下载arm64前要删除amd的镜像,因为拉取地址相同,不删除amd的拉取arm的会报错

docker pull --platform=arm64 registry.k8s.io/ingress-nginx/nginx:0b5e0685112e4537ee20a0bdbba451e9f6158aa3@sha256:3f5e28bb248d5170e77b77fc2a1a385724aeff41a0b34b5afad7dd9cf93de000

docker ta

你可能感兴趣的:(docker及周边技术,架构,docker,运维)