AZ-104 · Question #803
You have an Azure subscription. You create an Azure container registry and a container image. You need to push the container image to the container registry by using the Azure Command- Line…
The correct answer is A. Tag a container image with the name of the container registry's login server. Create an alias of the image Use docker tag to create an alias of the image with the fully qualified path to your registry. This example specifies the samples namespace to avoid clutter in the root of the registry. docker tag nginx myregistry.azurecr.io/samples/nginx Push the…
Question
Options
- ATag a container image with the name of the container registry's login server.
- BList the images in the container registry.
- CDeploy a container group.
- DConfigure a YAML file.
How the community answered
(52 responses)- A75% (39)
- B13% (7)
- C8% (4)
- D4% (2)
Explanation
Create an alias of the image Use docker tag to create an alias of the image with the fully qualified path to your registry. This example specifies the samples namespace to avoid clutter in the root of the registry. docker tag nginx myregistry.azurecr.io/samples/nginx Push the image to your registry Now that you've tagged the image with the fully qualified path to your private registry, you can push it to the registry with docker push: docker push myregistry.azurecr.io/samples/nginx https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-docker-cli
Community Discussion
No community discussion yet for this question.