进入正在运行的容器
docker exec -it <container_id> sh
备份
docker save -o <backup name> <image name>
#docker save -o alpine.tar.gz alpine
恢复
docker load -i <backup name>
#docker load -i alpine.tar.gz
docker exec -it <container_id> sh
docker save -o <backup name> <image name>
#docker save -o alpine.tar.gz alpine
docker load -i <backup name>
#docker load -i alpine.tar.gz
Copyright © 2016 yjiang's cake