Docker Containers for Beginners

Dan Tofan, software engineer, PhD

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
6 Lessons (31m)
    • 1. Introduction

      1:32
    • 2. Containers vs Virtual Machines

      2:19
    • 3. 'Hello' From Your First Container

      6:57
    • 4. Create New Image

      5:42
    • 5. Link Containers

      13:28
    • 6. Final Thoughts

      1:27

Project Description

The goal of this project is to get some hands-on experience with Docker tools by delivering a basic prototype of a containerized application.

STEP 1:

Make sure you have access to an Ubuntu 16.04 (LTS) machine.

This machine can be:

  1. Your machine
  2. A virtual machine that runs on your machine
  3. (Recommended) a virtual machine from a cloud provider (Vultr, Digital Ocean, other)
    1. If interested, my Vultr affiliate link is: https://www.vultr.com/?ref=6812365

STEP 2:

Install Docker Community Edition using the instructions from:

https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/

STEP 3

Install docker-compose using the instructions from:

https://docs.docker.com/compose/install/

STEP 4

Create a Dockerfile which is based on the ubuntu image and displays a message of your choice when running.

Build the image and then run it.

STEP 5

Create a docker-compose.yml file which uses the image in step 4.

(OPTIONAL) STEP 6

Check this resource: https://docs.docker.com/compose/gettingstarted/

Experiment with more complicated Dockerfiles and docker-compose.yml files.

STEP 7

Share your Dockerfile(s) and docker-compose.yml.

Student Projects