小编QQQ*_*QQQ的帖子

Azure 容器注册表 (ACR) 运行与 Azure 容器实例 (ACI) 创建

在学习 AZ-204 认证时,我发现自己遇到了与两个命令相关的问题。

Azure 容器注册表 (ACR)

使用 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)

Azure 容器实例 (ACI)

运行以下 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

10
推荐指数
1
解决办法
4067
查看次数