mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.5k stars 370 forks source link

how do i create my own custom (updated) docker images #530

Open ghost opened 2 months ago

ghost commented 2 months ago

I saw the repositories which have dockerfile for most desktop environments. Had them tested out but to be honest they are quite old and some don't work (like gnome).

I am not a newbie to linux but I don't know everything about DEs apart from the basic packages they provide. My Question is, that if there is a recipe for creating a desktop environment then kindly tell me so that I can create my own custom docker image to work with x11docker.

And if there is something special that x11docker needs for that. I plan to open source those dockerfiles (I can help with that but I am really bad at low level things so sorry, can't help in x11docker's development)

I don't know if someone will see this or not but if you are reading this, then kindly tell me how could i do it. I know docker from an enterprise perspective but not from a desktop users perspective.

mviereck commented 2 months ago

There is no general recipe for desktop environments. I just build images, try to run them, read the error messages, and look for possible fixes. Be it additional installations or configurations in image, be it x11docker options.

CoolnsX commented 2 weeks ago

I have created mine based on Dockerfile from one of the images created by @mviereck , I am using x11docker quite extensively, and now I am trying systemd-nspawn (docker/LXC alternative) and Xwayland command directly to make my own little script.

https://github.com/CoolnsX/desktop-in-docker

and this is the Dockerfile from the above repo, that I adapted -- https://github.com/CoolnsX/desktop-in-docker/blob/master/Dockerfile