mviereck / x11docker

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

start two applications from separate container on same x server #128

Closed lpt2007 closed 5 years ago

lpt2007 commented 5 years ago

It is possbible to start two applications from separate container on same x server?

eine commented 5 years ago

Yes. You can have a look at https://github.com/mviereck/x11docker/wiki/Custom-access-to-new-X-server

lpt2007 commented 5 years ago

I have two web browsers and I can start: chrome: sudo x11docker --pulseaudio --gpu --xorg -- --privileged -- chrome luakit: sudo x11docker --xorg luakit

Can you show me on this example how to start both? Can I choose position both app windows? Can I choose which web page will be opened in each browser?

mviereck commented 5 years ago

It is possbible to start two applications from separate container on same x server?

Re-using X servers started by x11docker is a bit of advanced usage and needs some deeper understanding in the concept of X servers and environment variables. If you understand the basics of X, you'll be able to apply the wiki. For now you are probably better served if you run a regular desktop and use x11docker on the desktop if you want to share the same X with multiple containers.

Can I choose position both app windows?

Have a look at xdotool. (But please don't ask for support of it here, that is far out of scope of x11docker).

Can I choose which web page will be opened in each browser?

x11docker --no-entrypoint -- jess/firefox firefox www.der-postillon.com