GithubHelp home page GithubHelp logo

Comments (7)

hongyi-zhao avatar hongyi-zhao commented on June 19, 2024

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.

from dockerfile-x11docker-deepin.

mviereck avatar mviereck commented on June 19, 2024

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

from dockerfile-x11docker-deepin.

hongyi-zhao avatar hongyi-zhao commented on June 19, 2024

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?

from dockerfile-x11docker-deepin.

mviereck avatar mviereck commented on June 19, 2024

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

from dockerfile-x11docker-deepin.

hongyi-zhao avatar hongyi-zhao commented on June 19, 2024

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

from dockerfile-x11docker-deepin.

mviereck avatar mviereck commented on June 19, 2024

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

from dockerfile-x11docker-deepin.

mviereck avatar mviereck commented on June 19, 2024

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.

from dockerfile-x11docker-deepin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.