Closed mviereck closed 3 years ago
BTW, the dirty and quick workaround for saving container's changes, say, --keepcache
and docker commit
should can persevere all user configurations, in case all other methods failed. But as you have told, it's not the suggested way and not a good practice for production environment.
--keepcache and docker commit should can persevere all user configurations
If it does, deepin would not store its configuration in HOME
. That would be wrong behaviour.
If it does, deepin would not store its configuration in HOME. That would be wrong behaviour.
It seems that I'm still not understanding the data persistence mechanism of docker to a decent degree. Could you please give me some more detailed explanations on your above assertion?
Basically it is simple:
It is standard that applications store user configurations in HOME
.
x11docker provides option --home
to preserve this folder on host.
That's all.
data persistence mechanism of docker
docker also provides so called "docker volumes" for persistent data storage. x11docker does not use this possibility (except you provide a docker volume with --home=volumename
).
Do you mean the current used method is based on bind mounts if the supplied argument is not a volumename?
Yes, with docker option --volume
. Compare the shown docker command if you run x11docker with option --debug
.
It seems o be a deepin issue that a few configurations in its control center are not stored. Closing issue because it is not caused by x11docker or the image build process.
@hongyi-zhao wrote in #31:
You understand correctly. But it seems some configurations in the deepin control center are lost nonetheless. I just tried with language and keyboard settings, they are lost. Other settings like e.g. "dark theme" and mouse cursor theme are stored.
Other things are stored, too, e.g. the application order in the application menu that shows the last used application on top. My fcitx configuration and my configuration of the file manager to show hidden files is stored, too.
I don't know how to fix this. Looks like a deepin bug.