IotEdge V1.4 - How to add network alias to a container

Diogo Correia 0 Reputation points
2024-03-21T09:26:58.66+00:00

How can I put the network alias of a docker container as the same name as the container itself?

I have a Edge Device (Linux containers on Windows) with several containers of custom modules.

I need to configure this containers to get the network alias from it's the name or a way to set it on the deployment template.

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.
535 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 28,386 Reputation points MVP
    2024-03-21T14:25:46.51+00:00

    Hello @Diogo Correia,

    welcome to this moderated Azure community forum.

    it seems you want to set a 'network-scoped alias for the container' like seen here.

    I expected you should be able to set a network alias using the Azure IoT Edge module container create options.

    Then I found this issue that seems to tell that this is not possible in an EFLOW situation, this technology you use.

    I recommend starting a new issue on the GitHub page so you get support right from the team behind Azure IoT Edge.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments