Getting Started with Docker on Linux for AWS

Beginner

38 students completed the lab in ~48m

Total available time: 1h:20m

20+ students rated this lab!

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:

Follow these steps to learn by building helpful cloud resources

Log In to the Amazon Web Service Console

Your first step to start the Lab experience

Connecting to the Virtual Machine using SSH

Create a secure connection to a remote machine

Installing Docker on Linux

Use a package manager to install docker on Linux

Using Docker without Root Permission on Linux

Use the docker group to allow your user to run docker commands

Getting Docker Help from the Command Line

Learn how Docker commands are organized and how to get help with each

Running Your First Docker Container

Run your first container using a registry image

Creating Your First Docker Image

Build a Docker image using a Dockerfile

Cleaning Up Your Docker Containers and Images

Use Docker commands to free up space