- 1 перегляд
You have a server named Server1 that runs Windows Server and has the Web Server (IIS) server role installed. Server1 hosts an ASP.NET Core web app named
WebApp1 and the app's source files.
You install Docker on Server1.
You need to ensure that you can deploy WebApp1 to an Azure App Service web app from the Azure Container Registry.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:
Step 1: Create a Dockerfile. This file contains instructions for the build process.
Step 2: Run the docker build command to create a container image.
Step 3: Run the docker push command to upload the image to Azure Container Registry.
xxxxx85xx
Highly Voted 2 years, 9 months ago
Correct Answers
upvoted 6 times
starseed
Most Recent 4 months, 2 weeks ago
Step 1: Create a Dockerfile. This file contains instructions for the build process. Step 2: Run the docker build command to create a container image. Step 3: Run the docker push command to upload the image to Azure Container Registry.
upvoted 1 times
[Removed]
1 year, 2 months ago
To deploy an ASP.NET Core web app to an Azure App Service web app from the Azure Container Registry using Docker, you should perform the following actions in sequence: 1. Create a Dockerfile. This is the first step where you define how to build the Docker image for your web app. 2. Run the docker build command. With the Dockerfile in place, you build the Docker image of your web app on Server1. 3. Run the docker push command. After building the image, you push it to the Azure Container Registry from where it can be deployed to Azure App Service. So the sequence is: Create a Dockerfile -> Run the docker build command -> Run the docker push command.
upvoted 3 times
syu31svc
1 year, 9 months ago
https://learn.microsoft.com/en-us/azure/app-service/tutorial-custom-container?tabs=azure-cli&pivots=container-linux Get a Dockerfile, build it then push it to the registry Answer is correct
upvoted 2 times
joehoesofat
2 years, 1 month ago
Suprised this didnt involve arm template but this appears to be a linux based quesiton - get the docker file and then get it to the registry https://phoenixnap.com/kb/create-docker-images-with-dockerfile#:~:text=1%20As%20an%20example%2C%20we%20will%20create%20a,with%20a%20text%20editor%20of%20your%20choice.%20
upvoted 2 times