Docker on iotedge

A Meik 1 Reputation point

I can't seem to get clarification on this question.

Can I deploy any docker hub image to iot edge?

For example, if I wanted to use the Nginx image (docker run --name some-nginx -d -p 8080:80 some-content-nginx).
Will this work?

Or say I wanted to use the google cloud sdk images (docker run -ti --name gcloud-config google/cloud-sdk gcloud auth login).
Will this work?

If the answer is yes, can you please point me to documentation on how to accomplish this.

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
534 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,114 questions
{count} votes

2 answers

Sort by: Most helpful
  1. QuantumCache 20,031 Reputation points

    Hello @A Meik Welcome to Microsoft Q&A Platform and thanks for your query.

    1) Please refer to this document: Create a container registry


    2) Also, as good reading content, I can recommend looking at this blog post by Microsoft's MVP @Sander van de Velde .

    You can use Azure IoT Edge as a deployment platform for Docker containers.

    Primer on rolling out your Blazor container on Azure IoT Edge


    3) Regarding the other questions, I hope you may have come across this article: Add webserver app module but this is related to Azure Stack Edge Pro device. Please comment below if this document/scenario is not helping with your query.

    In the Add IoT Edge module:

    Specify a Name for your webserver app module that you want to deploy.

    Under Module settings tab, provide an Image URI for your module image. A module matching the provided name and tags is retrieved. In this case, nginx:stable will pull a stable nginx image (tagged as stable) from the public Docker repository.

    Please let us know if you need further help in this matter.

    1 person found this answer helpful.
    0 comments No comments

  2. Sander van de Velde 28,236 Reputation points MVP

    Thanks, @QuantumCache for this very good explanation.

    Yes, you can use Azure IoT Edge just to distribute regular Docker containers using the Azure IoT Edge deployment manifest. Next to the Blazor app, I also demonstrated this with eg. MySQL, CrateDB, and regular NodeJS modules.

    You have to take special attention to eg. opening ports or attaching volumes. If needed, you can even give a container elevated rights (which is not recommended :-) ).

    If you want to make use of the secure routing mechanism on the edge though, you need to reference the Azure IoT SDKs

    1 person found this answer helpful.
    0 comments No comments