question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect container to azure-iot-edge and local docker network.

See original GitHub issue

Hello. We are trying to deploy a docker image to an Azure IoTEdge device. If we do not specify any networking in Container Create options in Deployment, it automatically connects to the azure-iot-edge network. However, we need our container to also be connected to another network local_network_name in addition to azure-iot-edge network. If we try to specify both networks in Container Create options our container fails to start because azure-iot-edge network is non Attachable. We have been able to get it running in the lab by manually connecting our container to the azure-iot-edge network after it has been created.

Our container has to be able to communicate to both EdgeHub and local containers in order to function. Is there a way we can resolve this issue?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mortenncommented, Nov 9, 2022

that is essentially what we have been doing. but we need this to happen without manual intervention

1reaction
mortenncommented, Nov 8, 2022

alternatively, if there is some other way we can get our image to be able to open the connection it uses to register direct method handlers without being on the azure-iot-edge network, that would also be acceptable

Read more comments on GitHub >

github_iconTop Results From Across the Web

Write createOptions for modules - Azure IoT Edge
IoT Edge modules are implemented as Docker-compatible containers on your IoT ... run the module locally using docker run <container name> .
Read more >
Add local storage to Azure IoT Edge modules using Docker Bind
This brings us inside the container! See how the prompt changes: We see that the root folder is /app. This folder contains the...
Read more >
Setup the local Azure IoT Edge development container
To simplify the development you can simply use Docker for Desktop with the Azure IoT Edge development container. The development container ...
Read more >
Azure Iotedge start docker with --net=host so that I can ...
My code is inside a docker container and I always get the IP address of the docker container instead of my machine. I...
Read more >
Azure IoT Edge Dev Container by Microsoft
This container includes all of the dependencies you need for IoT Edge development, including: Docker .NET Core SDK; Python; Pip; Azure CLI; Azure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found