Home Docker建站实战 Docker入门 Docker容器备份迁移

Docker容器备份迁移

0

**1. 容器生成新的镜像**

-p : 在commit时,将容器暂停

docker commit -p be14de974ce4  onlyoffice20230628:7.3.3

查看镜像大小

ll -h onlyoffice20230628.tar

2. 将镜像保存成一个tar压缩包

docker save onlyoffice20230628:7.3.3 > onlyoffice20230628.tar

3. 在另一台主机上加载镜像的tar压缩包

docker load -i  onlyoffice20230628.tar

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

退出移动版