利用docker容器镜像服务 快速复制文件
客户端A:
vi Dockerfile
FROM scratch
ADD ./obsidian167 /obsidian167
FROM alpine
ADD https://a.com/b.zip /obsidian167/b.zip
docker build --tag xxx:version1 .
docker tag xxx:version1 registry.cn-shanghai.aliyuncs.com/name/xxx:version1
docker login registry.cn-shanghai.aliyuncs.com
docker push registry.cn-shanghai.aliyuncs.com/name/xxx:version1
docker system prune --volumes -af
客户端B:
docker login registry.cn-shanghai.aliyuncs.com
docker pull registry.cn-shanghai.aliyuncs.com/name/xxx:version1
docker container create --name containerName registry.cn-shanghai.aliyuncs.com/name/xxx:version1 /bin/bash
docker cp containerName:/obsidian167 ./obsidian167
可以利用的云平台:
AWS CloudShell 或 抢占式实例 或 lightsail
阿里云 容器镜像服务 个人版
腾讯云 容器镜像服务 个人版