在学习 AZ-204 认证时,我发现自己遇到了与两个命令相关的问题。
使用 az acr run 命令从容器注册表运行 example/hello-world:v1 容器映像
az acr run \
--registry <myContainerRegistry> \
--cmd '$Registry/sample/hello-world:v1' /dev/null
Run Code Online (Sandbox Code Playgroud)
运行以下 az container create 命令来启动容器实例
az container create \
--resource-group az204-aci-rg \
--name mycontainer \
--image mcr.microsoft.com/azuredocs/aci-helloworld \
--ports 80 \
--dns-name-label $DNS_NAME_LABEL --location <myLocation> \
Run Code Online (Sandbox Code Playgroud)
如果都运行容器,这两个命令有什么区别?
谢谢。
containers azure azure-cli azure-container-registry azure-container-instances