You have a server named Server1 that runs Windows Server 2019. Server1 is a container host. You plan to create a container image. You create the following instructions in a text editor. FROM mcr.microsoft.com/windows/servercore:lts2019 LABEL maintainer=" User1@contoso.com " RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart RUN echo "Hello World!" > c:inetpubwwwrootindex.html You need to be able to automate the container image creation by using the instructions. To which file should…

QuestionsCategory: AZ-300You have a server named Server1 that runs Windows Server 2019. Server1 is a container host. You plan to create a container image. You create the following instructions in a text editor. FROM mcr.microsoft.com/windows/servercore:lts2019 LABEL maintainer=" User1@contoso.com " RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart RUN echo "Hello World!" > c:inetpubwwwrootindex.html You need to be able to automate the container image creation by using the instructions. To which file should…
Admin Staff asked 4 months ago
You have a server named Server1 that runs Windows Server 2019. Server1 is a container host.
You plan to create a container image.
You create the following instructions in a text editor.
FROM mcr.microsoft.com/windows/servercore:lts2019
LABEL maintainer="
User1@contoso.com
"
RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart
RUN echo "Hello World!" > c:inetpubwwwrootindex.html
You need to be able to automate the container image creation by using the instructions.
To which file should you save the instructions?

A. dockerconfig.json

B. Dockerfile

C. daemon.json

D. Build.ini








 

Suggested Answer: B

The Dockerfile is a text file that contains the instructions needed to create a new container image.
Reference:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile

Deploy and Configure Infrastructure

This question is in AZ-300 Microsoft Azure Architect Technologies Exam
For getting Microsoft Certified: Azure Solutions Architect Expert Certificate




Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Microsoft. 
The website does not contain actual questions and answers from Microsoft's Certification Exams.
Trademarks, certification & product names are used for reference only and belong to Microsoft.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.