- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在学习 AZ-204 认证时,我发现自己遇到了与两个命令相关的问题。
Azure Container Registry (ACR)
Run the sample/hello-world:v1 container image from your container registry by using the az acr run command
az acr run \
--registry <myContainerRegistry> \
--cmd '$Registry/sample/hello-world:v1' /dev/null
Azure Container Instance (ACI)
Run the following az container create command to start a container instance
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> \
如果都运行容器,这两个命令有什么区别?
谢谢。
最佳答案
我的理解是,az acr run
将仅执行添加到容器注册表中的镜像的快速运行,提供一些 logging output .
而 az container create
实际上会创建容器或容器组的运行实例。因此,只要您期望容器服务运行,它就会持续存在。
容器注册表更多的是容器镜像的存储库,而不是容器镜像运行和作为服务提供的地方。在 Azure 容器实例产品中,您可以部署容器组,这些容器组可以从注册表中提取容器镜像,您还可以将镜像提取到其他 Azure 产品中,例如应用服务和 Azure kubernetes 服务。
关于Azure 容器注册表 (ACR) 运行与 Azure 容器实例 (ACI) 创建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72206520/
我正在尝试从 Cisco ACI 获取路由表。我收到重复的路线。有办法解决它们吗? 例子: "10.127.32.70/32", "10.127.32.70/32",
一个看似简单的问题,但没有找到最好的方法。 因此,我需要从控制台应用程序记录应用程序事件,该应用程序将在容器内旋转并执行一些工作,然后终止。 如何从内部记录自定义数据? 我尝试过 Azure Moni
我正在尝试从 Azure CLI 启动 ACI 容器。当我从命令行发送多个命令时,部署会失败;而当我只传递一个命令(例如“ls”)时,部署会成功。 我是否以错误的方式向命令行传递了多个参数? az c
我创建了一个由 dotnet new web 生成的示例 asp.net core 应用程序。添加了暴露端口 5000 的 docker 文件。 Docker 文件如下 FROM mcr.micros
我在 vnet 中有 Azure 容器实例,我想实现负载平衡,但想不出可行的解决方案。对于上下文,它将是一组联系负载平衡资源的虚拟机,该资源会将请求定向到其中一个 ACI。 到目前为止,我尝试过的有
我在 vnet 中有 Azure 容器实例,我想实现负载平衡,但想不出可行的解决方案。对于上下文,它将是一组联系负载平衡资源的虚拟机,该资源会将请求定向到其中一个 ACI。 到目前为止,我尝试过的有
我终于正确设置了一个 azure 的 sftp 容器实例,但在为其配置安全性时遇到了困难(很像 here )。 我的基本流程是这样的: Azure 上的 PIP -> -> 使用 PIP 的负载均衡器
我希望在 Azure 容器实例中托管一个容器,监听 UDP 端口上的传入日志。我开发了 docker 镜像,可以在本地和我公司的内部网络中运行。想要在 Azure 中测试它,但我没有收到任何数据包..
我们需要将 ACR 设置为仅适用于选定的网络(而非公共(public)访问)。 但是,当我们设置此值时,ACI 无法从 ACR 中提取图像。 如何解决这个问题? 编辑: ACI 说: Failed t
我正在开发一个新的容器镜像,该镜像运行我的工作进程以排空 Azure 队列。一旦队列为空,我的应用程序就会退出,我希望 ACI 也解除分配并被删除。我所看到的是 ACI 坚持。它处于“终止”状态,重启
当我重新部署容器组时,私有(private) IP 地址发生变化。它通常是三个地址之一。因此,我认识到我的负载均衡器只能拥有所有这三个名称,并且似乎知道哪一个当前实际上处于事件状态,但我更希望能够让负
我使用 Azure 门户中的选项“mcr.microsoft.com/azuredocs/aci-helloworld:latest (linux)”部署了新的 ACI。部署并运行后,访问下面的容器加
我有一个在 Azure 中运行的容器(linux .NET Core)。此应用程序从 Azure 服务总线读取信息并将信息写入本地数据库中。 与 ASB 的连接工作正常,但当应用程序尝试连接到 SQL
我有一个从基础镜像 mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 创建的 Azure 容器实例。容器正在运行,
我已经使用 Azure ML studio 训练了一个模型并将其部署到 ACI。它按预期工作。现在我想下载docker镜像并在本地环境中使用它。是否可以使用 CLI 下载镜像? 最佳答案 在 ACI
尝试使用 docker compose 在 Azure 中部署此应用。 version: "3.5" x-environment: &default-back-environment # Da
当我们在 Azure 机器学习服务中将模型部署为 ACIWebService 时,不需要指定任何 deployment_target。 根据AzureML documentation对于 azurem
我有一个容器镜像(rancher/rancher:latest),我需要传递“--acme-domain=”标志。如何在 Azure Aci 中完成此操作? 最佳答案 经过大量的试验和错误,我能够使用
我已经使用 Azure ML studio 训练了一个模型并将其部署到 ACI。它按预期工作。现在我想下载docker镜像并在本地环境中使用它。是否可以使用 CLI 下载镜像? 最佳答案 在 ACI
尝试使用 docker compose 在 Azure 中部署此应用。 version: "3.5" x-environment: &default-back-environment # Da
我是一名优秀的程序员,十分优秀!