AWS Elastic Beanstalk Docker environment variables

How to pass environment variables to Docker containers running in AWS Elastic Beanstalk multiple docker container configuration(different for different containers)?

  • Pulling AWS EC2 container results in “image no found”
  • Why does Docker say it can't execute 'bash"?
  • Django, Postgres, Docker - Can not run migrations on database on ubuntu 14.04 python 2.7.11
  • Installing Docker on OpenSuse Linux
  • Docker swarm and service discovery
  • Selenium Grid with Docker containers on different hosts
  • How do apply Puppet class locally
  • Could not find jenkins_home folder in Ubuntu after downloading the Docker Jenkins Image
  • Docker TLS Error on Ubuntu
  • Docker deployment options
  • Test automation with docker, travis and a large database
  • Run Elasticsearch, Logstash and Kibana with 'docker-compose' command
  • One Solution collect form web for “AWS Elastic Beanstalk Docker environment variables”

    Use the environment key in your container descriptions.

      "containerDefinitions": [
          "name": "myContainer",
          "image": "something",
          "environment": [
              "name": "MY_DB_PASSWORD",
              "value": "password"
          "portMappings": [
              "containerPort": 80,
              "hostPort": 80
          "memory": 500,
          "cpu": 10

    For more information, see:

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