mviereck / dockerfile-x11docker-deepin

3D desktop deepin from China
MIT License
33 stars 11 forks source link

--home: some configuration in deepin control center is lost. #32

Closed mviereck closed 3 years ago

mviereck commented 3 years ago

@hongyi-zhao wrote in #31:

According to my understanding, if I'm using --home without any argument, the ~/.local/share/x11docker/IMAGENAME will be used for persistent data storage. But based my testings, use this option can't let me use the previous settings at all. I'm not sure whether I've understood your meaning correctly.

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.

hongyi-zhao commented 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.

mviereck commented 3 years ago

--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.

hongyi-zhao commented 3 years ago

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?

mviereck commented 3 years ago

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).

hongyi-zhao commented 3 years ago

Do you mean the current used method is based on bind mounts if the supplied argument is not a volumename?

mviereck commented 3 years ago

Yes, with docker option --volume. Compare the shown docker command if you run x11docker with option --debug.

mviereck commented 3 years ago

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.