Bootstrap IT Home | Bootstrap IT Blog

Intersted in a full-scale introduction to Amazon Web Services administration?
Check out my Manning book: Learn Amazon Web Services in a Month of Lunches.

Lab setup data from the Pluralsight course on

Using Docker on AWS

David Clinton

NOTE 1.0

These command snippets are meant for people working through the new, fully updated release of the Pluralsight course. If, somehow, you've been sent to this page from an older version that doesn't cover Fargate or Kubernetes, then I would advise you to disregard what you've seen. The way AWS handles Docker container workloads has changed substantially since that older version was created and there's a lot there that'll just confuse you. Accept no substitutes!

Note 1.1

Although I often recommend running LXC containers as a fantastic virtual environment for experimenting, don't even think about it for those demos that require Docker CE to be installed locally: since both technologies use abstractions of the host kernel, they'd be stepping all over each other's feet trying to get things done. Instead, unless you choose to follow along with the command line-based demos directly on an actual physical PC, I would recommend installing VirtualBox, downloading the latest stable LTS Ubuntu ISO file (which would currently be 18.04), and firing up as many VMs as you like. I included a video on working with VirtualBox in my Linux Server Virtualization course.

Note 1.2

Wilson Mar has been kind enough to create a GitHub repo with easy-to-access copies of all of the scripts from this page. Free free to help yourself.

Contents:


Script for installing Docker on Ubuntu


A simple Dockerfile


Build and run a container


WordPress stack.yml file for local deployment


Prepare an EC2 launch type


docker-compose.yml for EC2 launch


ecs-params.yml for EC2 launch



Launch EC2 type



Prepare a Fargate launch



YAML files for Fargate



Launch Fargate type



Install eksctl, kubectl, and aws-iam-authenticator



Build Kubernetes cluster and download YAML files



Build Apache webserver container on Docker CE



Apache on ECS


ECR authentication and administration