docker images --遍历镜像
docker save swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/nfs-subdir-external-provisioner:v4.0.2 > nfssubdir.tar --导出镜像
docker load < ./nfssubdir.tar --装载镜像
cat /etc/docker/daemon.json --查看本机docker配置(所有k8s集群配置需要一致)
docker tag swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/nfs-subdir-external-provisioner:v4.0.2 10.21.208.15/kuboard/nfs-subdir-external-provisioner:v4.0.2 电脑 --重新标记镜像
docker 电脑 login 10.21.208.11 --登录配置的私服
docker 电脑 push 10.21.208.11/kuboard/nfs-subdir-external-provisioner:v4.0.2 --推送镜像到镜像私服
docker rmi 10.21.208.11/kuboard/nfs-subdir-external-provisioner:v4.0.2 --删除本地镜像文件
docker pull 10.21.208.11/kuboard/nfs-subdir-external-provisioner:v4.0.2 --从私服拉取镜像文件
docker images
电脑