【发布时间】:2021-04-26 18:01:36
【问题描述】:
我正在与使用 Windows 容器的 IoT Edge v1.1 的客户合作。他们处于锁定环境中,不想连接到公共容器注册表。他们更喜欢从自己的 Azure 容器注册表 (ACR) 中摄取。我们已经使用 az acr import 将 edgeAgent 和 edgeHub 从我们的公共注册表复制到 ACR 以从以下位置拉取容器:
- mcr.microsoft.com/azureiotedge-agent:1.1
- mcr.microsoft.com/azureiotedge-hub:1.1
我发现 Azure IoT Edge 无法下载 edgeAgent 映像。如果我从 ACR 手动下载 edgeAgent 容器,edgeAgent 将正确启动。 edgeAgent 还可以通过 ACR 下载和安装 edgeHub。例如:
docker -H "npipe:////./pipe/iotedge_moby_engine" pull <private ACR>.azurecr.io/azureiotedge-agent:1.1
对于为什么 IoT Edge 无法提取图像本身有什么想法吗?我对 edgeAgent 的 config.yaml 配置有问题吗?
agent:
name: "edgeAgent"
type: "docker"
env: {}
config:
image: "<private ACR>.azurecr.io/azureiotedge-agent:1.1"
auth:
username: "<username>"
password: "<key>"
serveraddress: "<address>.azurecr.io"
【问题讨论】:
标签: azure-iot-edge