Skip to content

Docker

Single Container Docker Mode

  • Simply referred as docker mode
  • 1 Container on 1 Docker host which is a single provisioned EC2 instance
  • This mode does not use ECS
  • Any one of the following 3 configuration items are required
  • DockerFile : EB builds docker image & runs the container
  • Dockerrun.aws.json(V1) : Use an existing docker image & configuration provide by the file
  • Docker-compose.yml :

Multti Container Docker Mode

  • Uses ECS to provision environments
  • EC2 instances are provisioned through ECS
  • ELB is used for load balancing
  • We need t provide Dockerrun.aws.json (V2) in the applicaton source bundle at root level
  • Docker images should be stored in ECR