Will single docker container scale automatically on Amazon's EC2?

I created a single Docker container on Amazon’s EC2 default instance.
I am wondering will my app automatically scale if there is a sudden spike in traffic?

  • Running a Docker container on AWS Elastic Beanstalk - 502 Bad Gateway nginx/1.6.2
  • Install docker-volume-netshare on Linux AMI
  • How to setup SSH access to a docker container?
  • ECS network host mode and links = CannotCreateContainerError: Container already exists
  • Authorization error with AWS
  • Can Terraform set a variable from a remote_exec command?
  • Error response from daemon: network bridge not found
  • Kubernetes creation in AWS - ap-northeast-2 region throws error “Please specify AWS_IMAGE directly (region not recognized)”
  • Viewing mounted docker container in browser
  • Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development, works localy tho
  • How I can inject artifact from AWS S3 inside Docker image?
  • Why does different container of same elasticsearch image on docker exits out?
  • One Solution collect form web for “Will single docker container scale automatically on Amazon's EC2?”

    Not much is setup automatically in AWS. In very broadly outlined strokes, to achieve your goal, you’d need to roll the following:

    • An elastic load balancer
    • A launch config based on the image of the EC2 instance you want to scale.
    • An autoscaling group set to add another instance based on load

    This is way outside the scope of what can be answered quickly in a SO post.

    Judging by the question however, I’d recommend learning about ElasticBeanstalk (EB). You can setup a docker enabled beanstalk. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.html

    EB takes handles configuring the above for you–all you need to do is specify min an max instances you want to scale to.

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