EC2 Instances – Are they Just Containers

I’m so confused.

I created an EC2 Instance. So this isn’t a “Host”? It’s a container instance? I’m confused then if that’s the case. Then what’s the host for the images or how does this work? I pulled an image from docker hub to it, pushed the image to the AWS registry, and then now what? I want to run a container to run my app…so this “EC2 Instance” IS the container image? And there is no real “Host” virtual server here?

  • Configure sendmail inside a docker container
  • User-data script not executed when starting EC2 instance from AWS CLI
  • Connect to a remote database on a docker container hosted on an AWS instance
  • Exposing Elastic Beanstalk environment variables to Laravel's artisan using Docker
  • Enterprise Apps with Docker and Elastic Beanstalk
  • Unable to retrieve restored archive from AWS S3 'Invalid size value: 1g'
  • So looking at the way Docker works, what’s the Host and what’s the container with EC2? Are the “EC2 Instances” the containers in the below diagram I got from a book about docker?

    enter image description here

  • Multiple commands for Mongo Docker image
  • Docker Java Image cannot connect to Docker Mongo
  • Setup notification for private docker registry
  • How can I mount a volume among remote Docker Machines?
  • Docker: cannot open port 8080
  • docker info registry showing v1 and in docker run getting v2
  • 2 Solutions collect form web for “EC2 Instances – Are they Just Containers”

    EC2 instance is a virtual machine running on a physical host. If you want to run a container, make sure docker is installed on your instance, and run your docker commands.

    Docker host is your EC2 instance.

    Last time I’ve checked Amazon would’t let you provision just a single container. You’ll need to provision the whole EC2 instance and then start the container within it as you will do within your own desktop.

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