Microsoft

AZ-800 practice question 114

Administering Windows Server Hybrid Core Infrastructure · free question 114 of 246

Question

You have a Windows Server container host named Server1 and an Azure subscription. You deploy an Azure container registry named Registry1 to the subscription. On Server1, you create a container image named image1. You need to store image1 in Registry1. Which command should you run on Server1? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. The command has the form: [command] [action] Registry1.azurecr.io/image1 Hot Area:

Explanation

Select the command to use: docker — Server1 is a Windows Server container host, so the Docker CLI (installed with a container runtime such as Docker/Mirantis Container Runtime) is the tool that manages local container images and talks to an OCI-compliant registry such as Azure Container Registry. azcopy is for Azure Blob/File data transfer, xcopy is a plain file-copy utility, and git works with source repositories — none of them understand container image manifests or layers, so none can upload image1 to Registry1. Select the action to perform: push — after tagging image1 with the registry login server name (registry1.azurecr.io/image1) and authenticating with az acr login or docker login, docker push uploads the image layers and manifest into Registry1. pull works in the opposite direction (downloading an image from the registry to the host), while docker export and docker import move a container's filesystem to and from a local tar archive rather than transferring an image to a remote registry.

Need the theory? Learn it free in the AZ-800 course on Godlike Academy

Practice the whole free set

AZ-800 is a free exam: all 300 questions with instant feedback, plus Learn and Exam modes and PDF export, free.