You pull a Dockerfile from an online repository. You build a container image from this file, and you want to add it to an Azure Container Registry named mytestreg. The name of image is my-test-app.
You need to deploy the image to the registry.
Which command should you run from your developer computer?
You should use the following command: docker push mytestreg.azurecr.io/my-test-app
This command pushes the image named my-test-app to an Azure login server named mytestreg.azurecr.io.
You should not use the following command: docker run -p mytestreg my-test-app
This command runs a container locally. In this scenario, you need to deploy the container image.
You should not use the following command: az acr create --name mytestreg\my-test-app
The az acr create command creates an Azure Container Registry.
You should not use the following command: az container create --name mytestreg --image my-test-app
The az container create command creates a container instance in Azure.