Adding portMappings to Dockerrun.aws.json with Single container configuartion

I am using ElasticBeanstalk with single docker container. I am using DataDog(statsd client) for pushing metrics from the docker container. I have a running datadog-agent which is technically a statsd client on the host machine. The issue I am facing is to connect that client running at port 8125 from the container.

What I have tried is:

  • docker image for a go package
  • How to run sonatype nexus on aws ec2?
  • How to create a superuser in Django with Linux shell script?
  • Upgrading gcc in dockerfile
  • Docker: How to prevent the use of latest image from docker registry?
  • DC/OS and concurrent deployments
    1. EXPOSE PORT 8125/udp in Dockerfile which obviously didn’t work.
    2. Added Dockerrun.aws.json with
      {
        "AWSEBDockerrunVersion": "1",
        "portMappings": [
          {
            "hostPort": 8125,
            "containerPort": 8125
         }
       ]
      }

      But the issue is portMappings seems to added in V2 which is not available for single docker container.

    Thanks in Advance

  • Running Boot2Docker on windows, can't connect to the VM ip
  • Can you change the CMD of the node layer - Docker
  • Docker exec via rancher API
  • Setting up private docker registry with a frontend
  • enable gzip compression for Apache running in docker container
  • data lost while restarting postgres with docker
  • One Solution collect form web for “Adding portMappings to Dockerrun.aws.json with Single container configuartion”

    Try

    {
        "AWSEBDockerrunVersion": "1",
        "Ports": [
            {
                "ContainerPort": "8125"
            }
        ]
    }
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.