I have a MultiContainer application where both containers need to display windows.
[electron-app] starts with
startx /usr/app/reflx-os :0
[python-server] starts with
python3 /usr/app/server.py and needs to display an OpenCV window.
[electron-app] displays properly. However, when
[python-server] tries to open the OpenCV window it throws this error:
Gtk: cannot open display: 0
The issue is that the X server is running on the
[electron-app]. So how can I get my
[python-server] to use the X server from the other container?
It seems like sharing the hosts X server via unix socket is simple:
However, in this case, the host machine isn’t hosting the X server. The
[electron-app] container is.