DEV Community

Discussion on: Using Cognitive Services Containers with Azure IoT Edge

Collapse
 
geekloper profile image
Mohammed Abdellah DERFOUFI • Edited

Very helpful, thank you !


When i configured the PortBindings, the port wasn't exposed.

So i added ExposedPorts before PortBindings to expose the port :

{
    "ExposedPorts": {
        "5000/tcp": {}
    },
    "HostConfig": {
        "PortBindings": {
            "5000/tcp": [
                {
                    "HostPort": "5000"
                }
            ]
        }
    }
}

Edit : Apparently, it's known issue.