Docker 101

Content:

Overview
1. Deploy ToDo stand-alone
2. Update the app, build a new image
3. Persisiting the data, Volumes
4. Add MySQL DB, Multi-Container apps
5. Image Building Best Practises
6. Docker Compose
7. Tips and useful commands

Overview

This workshop is based on the Docker 101 Tutorial, created by Docker and others. I wanted to focus on different aspects hence the fork.

For this workhop I used the original Docker 101 Todo app and a great deal of the original texts from the Docker 101 Github repo. A big thanks to Docker, Inc. for placing their work under an Apache 2.0 license.

Objectives

In this workshop, you will learn some Docker or Container basics, like:

Prerequisites

Docker can be Docker CE for Linux or Docker Desktop for Mac, Windows, or Linux. We will not cover installation of Docker (Desktop) in this workshop.

Note: bwLehrpool has all the required software installed. Change into the PERSISTENT directory before cloning the repository in the next step.

Labs

We are going to deploy a ToDo app based on Node.js. It can run “stand-alone” using a built in SQLite database or it can connect with a external MySQL database.