Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Containerize C# Winforms Applications

I have a stand-alone Winform application. it is possible to containerize it in docker. Does docker support UI based application? Do I need docker for the purpose of testing the application?

like image 784
mHarry Avatar asked Jun 25 '26 07:06

mHarry


2 Answers

Yes, it is possible. You will be able to Containerize it using https://hub.docker.com/_/microsoft-dotnet-framework-runtime. UI-based application is running on top of the .Net framework, so it is fully supported. However, will you able to interact with the UI is a different question. You can interact via command line or network but not UI.

For testing, if you just test how the application works, you probably don't need Docker, but if you want to test the containerization then you will need Docker for Desktop.

like image 88
Toan Nguyen Avatar answered Jun 26 '26 21:06

Toan Nguyen


No you can't successfully containerize a Winforms application that requires a GUI, because "containers don't support Graphic User Interface (GUI)" - at least at the time of writing this reply (July 2023).

"Containers aren't a solution equivalent to desktop application virtualization. They support only server-side applications that don't require an interactive session. Because they run on specialized container images, they support only those applications that don't need a graphical front end."

Reference: What can't be moved to Windows Containers

like image 44
philu Avatar answered Jun 26 '26 21:06

philu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!