Containers
What Docker containers are, how they differ from virtual machines, how images are built and stored, and the AWS container services in this group.
What it is
Docker is a software platform for deploying applications. Each app is packaged in a container: the app plus everything it needs (libraries, runtime, settings), so it runs the same everywhere:
- on any machine;
- with no compatibility issues;
- with predictable behaviour;
- with less work, and easier maintenance and deployment;
- with any language, any OS, any technology.
Use cases: microservices architectures, and lift-and-shift of apps from on premises to AWS. One server (for example an EC2 instance) can run many containers at once: a Java app, a Node.js app and a MySQL database side by side.
Containers vs virtual machines
Docker is sort of a virtualization technology, but not exactly:
- A virtual machine has its own full guest operating system, running on a hypervisor.
- Containers share the host's operating system through the Docker daemon. They're much lighter, so many containers fit on one server and they start in seconds.
From code to running container
- A Dockerfile describes how to build the image (for example: start from Ubuntu, copy the app, install it, set the start command).
- Build it into an image.
- Push the image to a repository:
- Docker Hub (hub.docker.com): public, with base images for many technologies and operating systems (Ubuntu, MySQL…);
- Amazon ECR: private repositories, plus public ones in the ECR Public Gallery (gallery.ecr.aws).
- Pull and run the image as a container on any host.
Container services on AWS
- Amazon ECS (Elastic Container Service): AWS's own container platform.
- Amazon EKS (Elastic Kubernetes Service): AWS's managed Kubernetes (open source).
- AWS Fargate: AWS's serverless container compute; works with both ECS and EKS.
- Amazon ECR (Elastic Container Registry): stores container images.
In this group
Amazon ECS
EC2, Fargate and Managed Instances, IAM roles, load balancers, volumes.
ECS scaling and patterns
Service auto scaling, capacity providers, EventBridge and SQS.
Amazon ECR
Private and public image repositories, scanning, lifecycle.
Amazon EKS
Managed Kubernetes, node types, storage, EKS Anywhere and Distro.
Exam tips
- "Run Docker containers on AWS" → ECS (or EKS if they already use Kubernetes).
- "Containers with no servers to manage" → Fargate.
- "Already using Kubernetes", "cloud-agnostic" → EKS.
- "Store Docker images privately" → ECR.
Common traps
- "Containers each need their own OS, like VMs." They share the host's OS kernel.
- "Fargate is a separate container orchestrator." It's the serverless compute under ECS or EKS.
AWS documentation
Amazon SES and Pinpoint
Amazon SES for sending email at scale, Amazon Pinpoint for marketing messages, and what replaced Pinpoint after its end of support.
Amazon ECS
ECS clusters, tasks and services, the EC2, Fargate and Managed Instances capacity options, IAM roles for ECS, load balancer integration, and shared data volumes with EFS and S3 Files.