New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-800 Exam - Topic 2 Question 65 Discussion

Actual exam question for Microsoft's AZ-800 exam
Question #: 65
Topic #: 2
[All AZ-800 Questions]

SIMULATION

Task 4

You need to run a container that uses the mcrmicrosoft.com/windows/servercofe/iis image on SRV1. Port 80 on the container must be published to port 5001 on SRV1 and the container must run in the background

Show Suggested Answer Hide Answer
Suggested Answer: A

To run a container on SRV1 using the mcrmicrosoft.com/windows/servercofe/iis image, publish port 80 on the container to port 5001 on SRV1, and ensure it runs in the background, you can follow these steps:

Step 1: Pull the IIS Image First, pull the correct IIS image from the Microsoft Container Registry:

docker pull mcr.microsoft.com/windows/servercore/iis

Step 2: Run the Container Next, run the container with the required port mapping and ensure it runs in the background using the -d flag:

docker run -d -p 5001:80 --name iis_container mcr.microsoft.com/windows/servercore/iis

This command will start a container named iis_container using the IIS image, map port 80 inside the container to port 5001 on SRV1, and run the container in detached mode.

Step 3: Verify the Container is Running To verify that the container is running and the port is published, use the following command:

docker ps

This will list all running containers and show the port mappings.

Step 4: Access the IIS Server You can now access the IIS server running in the container by navigating to http://<SRV1_IP>:5001 in a web browser, where <SRV1_IP> is the IP address of SRV1.

Note: Ensure that Docker is installed on SRV1 and that the port 5001 is open on the firewall to allow incoming connections1.

By following these steps, you should be able to run the IIS container on SRV1 with the specified port mapping and have it running in the background. Please replace mcrmicrosoft.com/windows/servercofe/iis with the correct image name mcr.microsoft.com/windows/servercore/iis as shown in the commands above.


Contribute your Thoughts:

0/2000 characters
Karima
3 months ago
Totally agree, running IIS in a container is a bit odd.
upvoted 0 times
...
Graham
3 months ago
Wait, is that image still supported? I thought it was deprecated.
upvoted 0 times
...
Buddy
3 months ago
Why would you run IIS in a container? Seems unnecessary.
upvoted 0 times
...
Lorean
4 months ago
That’s the right command, but double-check the image name.
upvoted 0 times
...
Brett
4 months ago
Just use `docker run -d -p 5001:80 mcrmicrosoft.com/windows/servercofe/iis`!
upvoted 0 times
...
Jannette
4 months ago
I practiced running containers in the background before, but I might mix up the port mapping. I hope I get it right!
upvoted 0 times
...
Kristeen
4 months ago
I feel like I need to double-check the image name; it looks a bit off to me. Was it "mcr.microsoft.com" or something else?
upvoted 0 times
...
Charolette
4 months ago
This seems similar to a practice question we did on Docker, but I can't recall if we used the background flag correctly.
upvoted 0 times
...
Lorrie
5 months ago
I think I remember how to run a container, but I'm not sure about the exact syntax for publishing the ports.
upvoted 0 times
...
Malcom
5 months ago
This seems pretty straightforward. I think I can knock this out quickly using the Docker CLI. As long as I get the image name and port mapping right, I should be good to go.
upvoted 0 times
...
Kenneth
5 months ago
No problem, I've done this kind of thing before. I'll just need to use the right Docker commands to get the container running with the right configuration. Shouldn't take me too long to figure out.
upvoted 0 times
...
Cordie
5 months ago
Wait, what was the image name again? And do I need to map the ports explicitly or is there an easier way to do that? I'm a bit unsure about the details here.
upvoted 0 times
...
Ramonita
5 months ago
Okay, let me think this through step-by-step. I need to use the mcrmicrosoft.com/windows/servercofe/iis image, publish port 80 to port 5001, and run it in the background. Should be doable.
upvoted 0 times
...
Josue
5 months ago
Hmm, this looks like a pretty straightforward container deployment task. I think I can handle this.
upvoted 0 times
...
Gracia
12 months ago
I wonder if the container will come with its own comedic relief. That would make this task much more entertaining.
upvoted 0 times
Stefania
11 months ago
Yuki: Agreed, we can always add our own jokes later.
upvoted 0 times
...
Evette
11 months ago
User 3: Let's focus on getting the container running first.
upvoted 0 times
...
Yuki
11 months ago
User 2: Yeah, that would be interesting though.
upvoted 0 times
...
Madelyn
11 months ago
User 1: I doubt the container will come with comedic relief.
upvoted 0 times
...
...
Thora
12 months ago
I bet this is gonna be easy, just gotta remember the right syntax. *scratches head*
upvoted 0 times
Vallie
12 months ago
Thanks! I totally forgot about the -d flag for running in the background. You're a lifesaver!
upvoted 0 times
...
Brigette
12 months ago
Don't worry, I can help you with that. Just run the command 'docker run -d -p 5001:80 mcrmicrosoft.com/windows/servercofe/iis'
upvoted 0 times
...
...
Mel
1 year ago
Wait, did they say the container has to run in the background? I hope that's not a trick question.
upvoted 0 times
...
Yen
1 year ago
Ah, the magic of containerization! This should be a piece of cake.
upvoted 0 times
Gerri
11 months ago
User 4: Easy peasy, containerization magic at work!
upvoted 0 times
...
Gabriele
12 months ago
User 3: And make sure the container runs in the background.
upvoted 0 times
...
Rosalyn
12 months ago
User 2: Don't forget to publish port 80 to port 5001 on SRV1.
upvoted 0 times
...
Jesusita
1 year ago
User 1: Let's run the container using the microsoft.com/windows/servercofe/iis image.
upvoted 0 times
...
...
Bettina
1 year ago
And don't forget, the container must run in the background.
upvoted 0 times
...
Rochell
1 year ago
Yes, we also need to publish port 80 on the container to port 5001 on SRV1.
upvoted 0 times
...
Bettina
1 year ago
I think we need to run a container using the microsoft.com/windows/servercofe/iis image on SRV1.
upvoted 0 times
...
Otis
1 year ago
Hmm, sounds like we need to use the Docker run command with the appropriate flags. Let's see what the options are.
upvoted 0 times
Audra
1 year ago
You can use -p 5001:80 to publish port 80 on the container to port 5001 on SRV1
upvoted 0 times
...
Haley
1 year ago
Use the -d flag to run the container in the background
upvoted 0 times
...
...

Save Cancel