Azure App hosted docker port 25

When creating an Azure App Service with a Docker image. Is it possible to listen on other ports than 80 and 443 from the Docker image?

My requirement is that TCP port 25 from the Docker image is externally reachable.

  • Installing docker on azure virtual machine windows 10
  • Unable to connect to docker daemon on Azure Windows Server 2016 machine through VSTS2017
  • Ports On Docker
  • How do I deploy to a remote docker host on windows server 2016?
  • docker-machine ls shows state timeout
  • How to securely share private docker repo login credentials in Azure container service with Mesos & Marathon
  • Jenkins getting test results from docker slave
  • How to use kvm in a Centos 6 docker container via docker machine
  • Can't see files with Docker on Windows 10
  • Why does docker crash on high memory usage?
  • What are the differences between a VM image and a Docker image? [duplicate]
  • Remote debugging path mapping
  • One Solution collect form web for “Azure App hosted docker port 25”

    As Azure Web App sandbox states about Networking Restrictions/Considerations:

    Network endpoint listening

    The only way an application can be accessed via the internet is through the already-exposed HTTP (80) and HTTPS (443) TCP ports; applications may not listen on other ports for packets arriving from the internet.
    However, applications may create a socket which can listen for connections from within the sandbox. For example, two processes within the same app may communicate with one another via TCP sockets; connection attempts incoming from outside the sandbox, albeit they be on the same machine, will fail. See the next topic for additional detail.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.