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?

  • AWS ECR image list
  • Elastic Beanstalk with Docker deployment failure
  • Configure Postgres application users with Terraform for RDS
  • Installation of chef-client(Bootstrapping) on docker container in a VM on Azure/AWS
  • Node Docker Container On Elastic Beanstalk Can't Find Local Gulp
  • Docker Minecraft Host
  • 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

  • Docker CMD executable 'not found' - LUA
  • How to use docker in a gitlab-ci job?
  • Docker 1.7 consuming more space than Docker 1.5 for images
  • How to get the Docker version using the Remote API
  • Optimizations for ng build at runtime
  • “Service cron status” command does not give back the status of cron in the ubuntu docker container
  • 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.