Bootstrap IT Home | Bootstrap IT Blog

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 2.0

You'll need to make a change to the Dockerfile that installs Apache2 on Ubuntu: instead of:
  • RUN apt-get -y install
    The line should read:
  • RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install
    If you don't do that, the build will stall as it tries to set the system locale. Thanks to a sharp-eyed Pluralsight viewer for catching this and bringing it to my attention. I've updated the Dockerfiles themselves below.


    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