Understanding docker port mappings

Please explain the following output:

docker ps ExanpleContainter



  • Private environment variables when deploying with Docker on AWS Elastic Beanstalk
  • Best strategy for automatize a flow that need user interaction
  • Mac OS X, Vagrant, Docker, Nginx, Node - how do ports play together?
  • connecting to AWS server where docker is deployed through template
  • Docker-compose v2 expose port to machine
  • local docker Repos keep getting bigger and bigger
  • docker inspect ExanpleContainter
    "Ports": {
                    "1937/tcp": [
                            "HostIp": "",
                            "HostPort": "1937"
                    "443/tcp": [
                            "HostIp": "",
                            "HostPort": "443"

    I’d want to understand how mapping is done and which port is mapped where?

  • unable to connect through SSH key to bluemix container
  • dockerfile with windows path
  • Sha calculation of docker image layers
  • Containers are not linked with docker-compose version 2
  • docker beta on osx dns for links between containers not available
  • Linking web app to mongoDB in Docker
  • One Solution collect form web for “Understanding docker port mappings”>443/tcp

    This means docker host IP on port 443 is mapped to specified container on port 443. packets arriving at that ip port combination will be accessible in the container on the same port (443)>1937/tcp

    Packets arriving on all available IP addresses ( on docker host on port 1937 are accessible on specified container on the same port (1937)

    Read explanation in the answer and compare it to output of docker inspect ExanpleContainter.

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