Docker with multiple exposed ports

I have a container with say, 3 ports, 1000 (nodejs-express), 1001 (python-flask) and 1002 (angular2-client) exposed. When I use

docker run --name test -d -p 1000:1000 -p 1001:1001 -p 1002:1002 docker_image

Only the Express server is working fine on the host computer. However, when I log into the container and do curl, all three servers are responding just fine.

  • How to restart container using container-id?
  • docker: how to restart containers from files from /var/lib/docker/containers
  • What is the relationship between the docker host OS and the container base image OS?
  • How to set up a Docker Swarm cluster with overlay network mode
  • Single versus multiple containers
  • Docker Swarm Cluster: daemonize
  • Any ideas what is going on with multiple port bindings with docker/host?

  • Build and use docker image from docker-compose
  • Add D: Drive to Windows Server 2016 Docker Images
  • Can't connect to my Bluemix container (Connection: close)
  • Hadoop cluster with docker swarm
  • Combining salt, docker and Amazon EC2 for hosting Python application
  • Multiple SymmetricDS instances at same host
  • One Solution collect form web for “Docker with multiple exposed ports”

    Once you do the following:

    1. EXPOSE ports on the DockerFile
    2. set -p flag for each port to expose externally

    You just need to make sure that your services allows external connections.

    i.e. for python flask: the default listen is localhost. Make sure it’s listening on

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