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?

  • Error Docker deployment in Amazon EC2 - Docker container quit unexpectedly
  • How to use t2.nano ec2 instances in an Amazon ec2 container cluster?
  • Difference between Docker and AMI
  • How to deploy mongoDB Docker image to Elastic Beanstalk?
  • Logs to AWS Cloudwatch from Docker Containers
  • Secure distribution of private keys to Docker on CoreOS
  • Docker in Windows Server 2016 is not working
  • Why does my AWS ECS task require docker api 1.18?
  • Error Running Dockerrun.aws.json file ERROR: ValueError :: Extra data
  • Docker example for frontend and backend application
  • Communicating between Docker containers in different networks on the same host
  • Docker Container/AWS EC2 Public DNS Refusing to Connect
  • 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.