External access to Node.JS app, within Docker container

i have a Node app running within a Docker container, hosted on Elastic Beanstalk (single instance). The docker has port 3000 exposed to access the app within the docker, and I can ‘curl 172.17.0.32:3000/test’ from the host which returns the expected response.

The problem I have is accessing this port externally using the elastic beanstalk url. i.e

  • Can not deserialize instance of int out of VALUE_FALSE token while readng docker info client.infoCmd().exec();(docker java api version 0.10.4)
  • Overriding default umask for docker daemon
  • How avoid docker0 interface starting?
  • Docker-compose volume mount before run
  • Error Setting up Containerized Sensu-server and client, to monitor Docker
  • Docker Add every file in current directory
  • http://XXXXXX-env.elasticbeanstalk.com:3000/test

    This will time out.. can anyone recommend how to gain access to this port externally?

    thanks

  • Docker compose scaling down and Consul
  • Raspberry PI docker container not starting
  • Error logging in docker running nginx, php-fpm
  • Docker not syncing hosts folder (Windows)
  • Deploying local Docker image (DockerFIle) as local Kubernetes pod
  • Docker build, how to show progress?
  • One Solution collect form web for “External access to Node.JS app, within Docker container”

    Check this for reference
    http://victorlin.me/posts/2014/11/26/running-docker-with-aws-elastic-beanstalk

    see what your docker ps command returns.

    The ip you have shared looks like private ip address of the docker service used for internal network. You have to enable a bridge between your host and docker container by supplying -p 3000:3000 to the run command and finally enable the app in your elastic console.

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