IoT Edge - 将Docker镜像发送到边缘设备失败 [英] IoT Edge - Send Docker Image to Edge Device Fails

查看:138
本文介绍了IoT Edge - 将Docker镜像发送到边缘设备失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建边缘设备。我按照这个例子,让模拟的温度传感器在我的Windows 10 VM上正常工作,这是从Portal部署的。


我现在正在尝试使用我拥有的docker镜像并部署到Windows 10 VM作为物联网边缘设备。在Portal中,我点击了IoT Edge,然后创建了一个设备。在创建之后,我点击了设备并转到Set Modules,在那里我创建了
一个新的部署模块 - 物联网边缘模块并填写了所有细节。我正在使用一个泊坞窗图像,因此对于我输入的图像URI,https://hub.docker.com/r/myRepo/myImage其中myRepo和myImage中包含实际名称。我还设置了容器选项
和环境变量。这是一个公共docker repo。


当我在Windows 10 VM上运行iotedge列表时,我只得到edgeAgent而不是edgeHub和我创建的其他模块,其中包含docker容器。 / p>

返回并点击门户网站上的IoT Edge,我在IoT设备上看到一条错误,指出:" 400
- 部署配置格式错误或无效
"


非常感谢任何帮助。谢谢!


解决方案


你能指点我们你所关注的教程吗?


对于你想要实现的目标,我将从这里开始:  教程:开发C#IoT Edge模块并部署到模拟设备


谢谢!


I am trying to create an edge device. I followed the example and had the simulated temperature sensor working on my windows 10 VM correctly which was deployed from the Portal.

I am now trying to take a docker image that I have and deploy to the windows 10 VM as an IoT Edge Device. In the Portal, I clicked on IoT Edge and then created a device. After it was created, I clicked on the device and went to Set Modules where I created a new Deployment Module - IoT Edge Module and filled out all the details. I am using a docker image so for Image URI I entered https://hub.docker.com/r/myRepo/myImage where myRepo and myImage had the actual names in it. I also setup container options and environment variables. This is a public docker repo.

When I run iotedge list on my Windows 10 VM I only get edgeAgent and not edgeHub and my other module I created that has the docker container in it.

Going back in and clicking IoT Edge from the portal, I see an error on my IoT Device that states: "400 - The deployment configuration is malformed or invalid"

Any help is greatly appreciated. Thank you!

解决方案

Hi,

Can you point us to the tutorial you are following?

For what you are trying to achieve I would start here: Tutorial: Develop a C# IoT Edge module and deploy to your simulated device

Thanks!


这篇关于IoT Edge - 将Docker镜像发送到边缘设备失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆