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:

  • Mounting container volume from the hosts' drive?
  • docker-compose not recognizing env_file file/location, and still tries to use the default .env
  • memcached fails after running for a while
  • How to see the log information in running docker daemon?
  • How to connect to a docker box running elasticsearch inside a vagrant guest os?
  • Docker Plugin for Jenkins Pipeline - No user exists for uid 1005
    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

  • Different env-file but same yml with Docker Compose?
  • run docker under supervisor, can not enable tty error
  • Ansible docker_container module env file
  • How to keep a service running on a Docker container
  • Using docker with RDS (Prod), but confused about local DB setup (dev)
  • Why am I unable to run django migrations via the 'docker-compose run web' command?
  • 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.