docker容器跨服务器复制容器镜像


1年前 608次点击 来自 其他

标签: Docker

1.查看容器id并保存镜像为tar包

docker ps -a
docker save -o swiftplayground.tar   devler/swiftplayground:latest

2.导出到本地

scp -r root@50.60.90.80:/home/swiftplayground.tar /home/

3.将swiftplayground.tar包导出到本地来并运行docker容器

docker load  -i  swiftplayground.tar
docker run -d -p 0.0.0.0:8080:8080 --name swiftplayground -t devler/swiftplayground

Made with in Shangrao,China By Devler.

Copyright © Devler 2012 - 2022

赣ICP备19009883号-1