C++ exe not running inside Docker container

Shobhit Gupta 0 Reputation points
2023-10-17T07:40:19.71+00:00

I have a C++ project written in C++ 98 on Windows platform. I'm trying to run its executables inside docker container but the exe is not running. Its not showing any error as well. I have checked the exe with Dependency Walker and all the dependent DLLs are available in the container.

User's image

Below is the Dockerfile

# escape=`

# Using servercore:ltsc2019 image from Microsoft
ARG FROM_IMAGE=mcr.microsoft.com/windows/servercore:ltsc2019
FROM ${FROM_IMAGE}

# Expose OHLC server port
EXPOSE 1011/tcp

# Copy artifacts from drop folder to docker container
COPY drop\* C:\GC1\

# Run GC1
WORKDIR C:\\GC1\\
#CMD ["C:\\GC1\\GatewayClient.exe"]

Below are project details:

Configuration: Release
Platform: Win32
Platform Toolset: Visual Studio 2015 (v140)
Target Platform Version: 8.1

Can someone please help me in understanding the issue. Please let me know if I'm missing anything.

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.