Hosting GUI application in Docker windows

#This is my Docker file which runs on windows Container

FROM Microsoft Artifact Registry
ADD /vc_redist.x64.exe
RUN C:\VC_redist.x64.exe /install /quiet
ADD ./MFCDemo.exe /MFCDemo.exe
CMD C:\MFCDemo.exe

I am trying to run Demo MFC executable in the Windows docker container

I was able to create an image in the docker, but when I am executing it, there is no output or any popup.
Can you please tell me what to do?

We discussed it many times on the forum. You can’t have GUI in Windows containers. I found an other source from Microsoft forum too:


We can run any application in Docker as long as it can be installed and executed unattended, although we can not see the GUI.