I am trying to ship a C++ project as an .exe file in a docker nanoserver container. I understand that nanoserver can only run x64 executables, so I double-checked that the executable is built for x64.
The project is not based on Visual C++ and does not include any .NET libraries.
If I run the .exe within the container it just silently exits without any output. Is there a way to check why the exe won't run inside the container? I am able to connect to the container via powershell.
The dockerfile that I used:
ROM mcr.microsoft.com/windows/nanoserver:10.0.14393.953
WORKDIR /app
COPY ./data /app
EXPOSE 3002
CMD ["./app.exe"]
The solution to this problem actually was an GUI Output that I obviously could not see. After fixing the bug that produced the Popup everything worked fine.