Getting Started with Docker on Linux for AWS

The hands-on lab is part of these learning paths

Refactoring a Monolithic .Net Application to use Cloud Services
course-steps 4 certification 2 lab-steps 6
Docker in Depth
course-steps 3 certification 1 lab-steps 2

Lab Steps

Logging in to the Amazon Web Services Console
Connecting to the Virtual Machine using SSH
Installing Docker on Linux
Using Docker without Root Permission on Linux
Getting Docker Help from the Command Line
Running Your First Docker Container
Creating Your First Docker Image
Cleaning Up Your Docker Containers and Images

Ready for the real environment experience?

Duration1h 20m


Lab Overview

Docker has taken DevOps by storm and ignited interest in containers. Containers offer many of the benefits of virtual machines but in a much more efficient, less resource-intensive system. Containers allow you to package up an application in an isolated environment that can be executed across machines in a reproducible manner. No more "well, it worked on my machine" syndrome when you leverage Docker for your application development and deployment.

In this Lab, you will get up and running with Docker on Linux using an AWS virtual machine. You will work with images from the public Docker registry, run a handful of containers, and create your own image from which to create containers. 

Lab Objectives

Upon completion of this lab you will be able to:

  • Install Docker on Linux using an AWS virtual machine
  • Add a user to the Docker group
  • Find and use images from the public Docker Registry
  • Build your own images using Dockerfiles
  • Clean up after images and containers are finished

Lab Prerequisites

You should be familiar with:

  • What containers are
  • Working at the command line in Linux

Lab Environment

Before completing the lab instructions the environment will look as follows:


After completing the lab instructions the environment should look similar to:

About the Author

Learning paths4

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Linux Foundation Certified System Administrator (LFCS). He earned his Ph.D. studying design automation and enjoys all things tech.