Running dotnet on headless docker container

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
noamnokod
Newbie
Newbie
Posts: 1
Joined: Sun Aug 20, 2023 8:33 am

Running dotnet on headless docker container

Post by noamnokod »

Hello,
I am trying to run a .exe that uses dotnet on a docker container (the exe is CLI only, so no need for a GUI).
I tried using winetricks to download dotnet but I keep running into issues related to being headless (`Application tried to create a window, but no driver could be loaded` for example)

Is wine the correct tool for my use case or is it only built for GUI?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Running dotnet on headless docker container

Post by jkfloris »

You can try the "quiet" option of winetricks when installing .Net.
For example:

Code: Select all

winetricks -q dotnet48
Locked