docker镜像转移,mac Linux

 起因是镜像在互联网,而公司内网没有网络,需要跨平台转移,且系统不一样,一个Arm,一个linux。正常进行后,报错系统编译问题,特将处理过程总结一下

在 mac在pull镜像的时候需要设置参数,确保下载的镜像,可以转移到linux 系统。

在本机使用,拉取的时候会自动选择,无需额外参数
docker pull  registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.10
未来要在Linux使用(但当前电脑是arm,非amd64)
docker pull --platform=amd64  registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.10

docker pull --platform=amd64 你的dockerinfo

在已有docker镜像的情况下,进行docker镜像的打包转移

1、docker 查询到镜像的repository \tag

终端黑窗口输入:docker images


REPOSITORY                                             TAG                                    IMAGE ID       CREATED       SIZE
registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr   funasr-runtime-sdk-online-cpu-0.1.10   e80476b001ab   3 weeks ago   3.16GB
registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr   funasr-runtime-sdk-cpu-0.4.5           ba82
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值