docker 容器迁移到其他机器部署
docker 容器迁移到其他机器
容器转为镜像,再保存为镜像文件,迁移到其他机器后导入为镜像
1、commit:将容器转镜像
docker commit {container_id} {镜像名:版本号}
2、save:保存镜像为文件
docker save -o {文件名.tar} {镜像名:版本号}
3、load: 导入docker环境
docker load -i {文件名.tar}
Do not communicate by sharing memory; instead, share memory by communicating.

浙公网安备 33010602011771号