You are not logged in.

#1 2021-12-05 20:02:55

burny02
Member
Registered: 2021-07-01
Posts: 129

GUI applications - Docker

Hi;

Does anyone know of any ways to display a docker GUI application through X11?

I have had success passing xauth a magic cookie...

sudo docker run -d --name=GUI-instance -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix GUI-Instance bash -c "xauth add etc...MIT-MAGIC-COOKIE-1..etc.. & run_GUI"

But after a restart the cookies change and it no longer displays.
Presumably this means, I will have to

A: Create temporary docker each time, rather than a saved one
B: Somehow extract that cookie from xauth list with some sort of string manipulation


Is there an easier way?

Offline

#2 2021-12-06 04:24:57

jonno2002
Member
Registered: 2016-11-21
Posts: 887

Re: GUI applications - Docker

why ? what are you trying to do ? there will be a better way im sure

Offline

#3 2021-12-06 12:49:43

burny02
Member
Registered: 2021-07-01
Posts: 129

Re: GUI applications - Docker

I'm trying to run a GUI application in docker

Offline

Board footer

Powered by FluxBB