title: Docker- Image and Container to build and run an Executable file
body: <p>Am new to Docker technologies, I have build an executable file in Visual Studio 2015 on Windows 10 machine.</p>
  
  <p>Am looking to dockerize this executable file. I have build an Image and Container but the exe file is not being execute.</p>
  
  <p>Here is my work so far:</p>
  
  <p>Docker file:</p>
  
  <pre><code>FROM microsoft/aspnetcore:1.1
  COPY . /app
  WORKDIR /app
  ENTRYPOINT ["dotnet","Controller.exe"]
  CMD ["Controller.exe","RUN"]
  </code></pre>
  
  <p>Command used to create Image:</p>
  
  <pre><code>docker build -t imagename:version
  </code></pre>
  
  <p>Command used to create controller:</p>
  
  <pre><code>docker run -it --name Controller_name Image_ID run
  </code></pre>
  
  <p>Am trying to start the controller, but the controller is not starting</p>
  
  <p><a href="https://i.stack.imgur.com/DESvY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DESvY.png" alt="enter image description here"></a></p>
  
  <p>I have performed docker logs and here is the information in the log file.
  <code>A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\app'.</code></p>