Docker 101 Tutorial

Learn how to build and share a containerized app

You can use either Play with Docker or Docker Desktop to complete this workshop.

In this self-paced, hands-on-tutorial, you will learn how to get up and running with Docker containers. You will build images, run containers, use volumes to persist data and mount in source code, and define your application using Docker Compose. You'll even learn about a few advanced topics, such as networking and image building best-practices. 

 

Docker Desktop

Docker Desktop is a native application that delivers all of the Docker tools to your Mac or Windows Computer. 

  1. Open Docker Desktop. (Download here if you don't have it).
  2. Type the following command in your terminal: docker run -dp 80:80 docker/getting-started
  3. Open your browser to http://localhost
  4. Have fun!

Play with Docker

Play with Docker is an interactive playground that allows you to run Docker commands on a linux terminal, no downloads required.

  1. Log into https://labs.play-with-docker.com/ to access your PWD terminal
  2. Type the following command in your PWD terminal: docker run -dp 80:80 docker/getting-started:pwd
  3. Wait for it to start the container and click the port 80 badge
  4. Have fun!