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 for Mac: x509: certificate signed by unknown authority error
  • Docker COPY behaving inconsistently
  • Kubernetes flannel network does not work as expected
  • Docker Exec Cronjobs Filling Ec2 instance disk space, why?
  • Run RabbitMQ server in Docker
  • Symfony2 is running extremely slow on php7-fpm on multi docker
    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

  • Where does docker-machine save the configuration on a remote Ubuntu host running systemd?
  • Error checking TLS connection: Error checking and/or regenerating the certs
  • Issue mounting docker volume with docker-compose
  • golang net.LookupHost in docker container return 127.0.53.53
  • How to save a Docker image
  • How to add Zend Guard Loader support in docker php official image instance?
  • 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.