X11docker: How to build image which contains changes in /home folder?

Created on 10 Nov 2020  路  1Comment  路  Source: mviereck/x11docker

To retain data while using container, I use --home.
But I want to put something in ~/ instead of / and do some configurations on them. If I configure in Dockerfile, it will be cleared when I launch image.
How do I build an image which contains something in ~/?

question

Most helpful comment

You can create files in /etc/skel. They will be copied to ~/ if it is empty.
Compare e.g. x11docker/lxde that contains some configuration files in /etc/skel: https://github.com/mviereck/dockerfile-x11docker-lxde/blob/master/Dockerfile

>All comments

You can create files in /etc/skel. They will be copied to ~/ if it is empty.
Compare e.g. x11docker/lxde that contains some configuration files in /etc/skel: https://github.com/mviereck/dockerfile-x11docker-lxde/blob/master/Dockerfile

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eine picture eine  路  6Comments

sandrokeil picture sandrokeil  路  6Comments

mwoodpatrick picture mwoodpatrick  路  9Comments

sandrokeil picture sandrokeil  路  5Comments

alxlg picture alxlg  路  9Comments