Ask Your Question
2

How can I execute an .exe file on a Windows Server Core within a Docker Windows container?

asked 2021-09-19 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-08-09 01:00:00 +0000

pufferfish gravatar image

To execute an .exe file on a Windows Server Core within a Docker Windows container, follow these steps:

  1. Create a Dockerfile that includes the Windows Server Core as the base image.

  2. Copy the .exe file to the Docker image using the COPY command.

  3. Use the RUN command to execute the .exe file within the container. For example:

    myapp.exe

  4. Build the Docker image using the docker build command.

  5. Run the Docker container using the docker run command and specify the port mapping, environment variables, and any other necessary configurations.

Note: Ensure that the .exe file is compatible with the version of Windows Server Core in the Docker image.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-09-19 11:00:00 +0000

Seen: 10 times

Last updated: Aug 09 '21