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 BeanStalk environment running multi-container Docker fail to start with Health: Severe
  • Dockerfile Script for Amazon AWS
  • Passing environment variables to Docker containers
  • Screen within Docker from ssh
  • How to sandbox Ansible playbooks for high availability Glassfish application on AWS
  • Odoo Blank screen with no UI , on docker container setup on AWS
  • 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

  • Linking containers in Docker
  • grunt serve in docker container max call stack error
  • Install a package to a docker container (managed by dokku)
  • docker behind proxy doesn't use system proxy info
  • ship test assets with docker for continuous integration
  • Docker FATAL: could not write lock file “”: No space left on device
  • 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.