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.

  • Should I containerize a standalone command-line or terminal application which requires 16 vCPU?
  • Want to run docker in windows server 2016 on azure
  • Installing Docker.io on Ubuntu 14.04LTS
  • Set Docker Volume Driver opts via remote api
  • imagepullbackoff while pulling image from azure container registry
  • Installing docker on azure virtual machine windows 10
  • docker compose: create two containers from one image
  • Can't run python script with interpreter inside docker [Errno 13] Permission denied
  • Docker-compose failing to run a jar file but works with Dockerfile
  • Assembly specified in the dependencies manifest was not found while running docker with dotnet-core project
  • Debian Host: CTRL + P + Q doesn't keep container alive
  • Nginx docker container returning corrupt JSON file, renamed file
  • 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.