Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何从一个docker容器迁移数据到另外一台服务器 #787

Open
HaSaKiYasuooo opened this issue Mar 29, 2024 · 4 comments
Open

Comments

@HaSaKiYasuooo
Copy link

现在我有两台电脑,我希望能够吧数据全部迁移过来,但是我的容器是docker-compose.yml编写启动的
不知道怎么迁移保存数据,咯咯995
image

@HaSaKiYasuooo
Copy link
Author

我想全部迁移图片,怎么设置

@YunchaoZheng
Copy link

把mysql、lsky的持久化目录搬到新机子上,把docker-compose.yml文件内的目录映射修改对应,然后up -d就行了应该

@HaSaKiYasuooo
Copy link
Author

出现错误,还是不行,怎么解决这个问题
image

@UPToZ-Core
Copy link

参考一下https://blog.uptoz.cn/archives/lM3IYw7L

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants