Running windows Desktop GUI-based Application inside containers

I want to containerize one of my Windows desktop application(GUI). But i want to use the GUI outside the containers, ( i.e) in the machine where the containers are hosted.

Is there any possible way to share the display inside the container to the host(Only the application display)?

Or is there any way to view the application in the host browser. Are there any display exporters available. ?

Thanks in Advance

1 Like

@velsivam96, did you figure this out? I would like to do similar thing.

I have the following minimal Dockerfile on a Linux host:

FROM centos:7.5.1804

RUN yum -y install xauth glx-utils xclock mesa-dri-drivers.x86_64

I build the image as follows:

docker build -t docker-gui .

Then, xeyes works fine:

docker run --rm -ti -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix docker-gui xeyes

But glxgears does not:

docker run --rm -ti -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix docker-gui glxgears

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error: couldn't get an RGB, Double-buffered visual

I am starting to convince myself that GUI based applications are not completely supported in Docker containers.