一、如何build双架构(AMD+RAM)镜像   
 (1) 需求描述  
当k8s集群的硬件资源为ARM+AMD混合架构时,镜像需要同时支持2种架构,如何构建镜像。   
 (2) 操作  
准备工作:需要将代码在不同架构下build为镜像,以下默认我们准备好了2个不同架构下的镜像。如   
REPOSITORY                                              TAG                            IMAGE ID       CREATED             SIZE
extract                0.0 .1.amd              60b4905c7e06   About an hour ago   1 .05GB
extract                0.0 .1.arm              238df431dadf   3  hours ago         1 .11GB     
具体操作   
docker  manifest create --insecure  extract:0.0.1.arm_amd  extract:0.0.1.amd extract:0.0.1.arm
docker  manifest annotate extract:0.0.1.arm_amd extract:0.0.1.arm --os  linux --arch  arm64 --variant  v8
docker  manifest annotate extract:0.0.1.arm_amd extract:0.0.1.amd --os  linux --arch  amd64
docker  manifest push extract:0.0.1.arm_amd
docker  pull extract:0.0.1.arm_amd
docker  manifest inspect  --verbose  extract:0.0.1.arm_amd