We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
挂载了opt,mnt,ext目录等,但是重装后在docker-headless中安装的各类程序都丢失了。(即使这三个挂载目录的本地数据没有变化)
如何能使得这部分内容也持久化?
The text was updated successfully, but these errors were encountered:
这个暂无解,容器本身机制是这样,建议结合理解按场景不同 区分注意项,来避免容器内已装过的(非挂载目录)数据丢失:
docker run -d $img
docker run -it --rm $img
dcp create
dcp start/stop
dcp down
先把home拷贝到/_ext下, 再ln -s /_ext/home /home
Sorry, something went wrong.
定制镜像可能是个好方案
No branches or pull requests
挂载了opt,mnt,ext目录等,但是重装后在docker-headless中安装的各类程序都丢失了。(即使这三个挂载目录的本地数据没有变化)
如何能使得这部分内容也持久化?
The text was updated successfully, but these errors were encountered: