Skip to content

timdaman/docker-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-tutorial

A environment and series of examples to learn about docker.

To participate in the tutorial you need

  1. a laptop with
  • 1-2GB of free RAM
  • 5GB of free disk space in your home directory
  1. To have performed the setup steps below.

Find videos on-line

This tutorial was presented to the Kitchener Waterloo Ruby MeetUp. You can find videos here of that presentation and follow along.

You MUST do the following before you arrive to your tutorial session

  • Install Virtual Box if you don't already have it

You can get there here

    https://www.virtualbox.org/wiki/Downloads
  • Install docker-machine

You ONLY need docker-machine, not the completion scripts. You find the installation steps for your platform here.

   https://docs.docker.com/machine/install-machine/
  • Run the following commands to prepare your laptop
 docker-machine create --driver virtualbox tutorial
 docker-machine ssh tutorial curl --silent -L  https://raw.githubusercontent.com/timdaman/docker-tutorial/master/setup_lab.sh \| sh
 docker-machine stop tutorial

The reason why I asking you to do this work ahead of time is because

  • I am going to dive straight into using Docker rather than wasting a lot of time showing how to install it. If you are not prepared you will fall behind.
  • In a busy class if everyone tried to download the needed files for the example there is a high risk that the network would collapse under the combined demand. These prep steps caches almost all the data you need to follow along.
  • This give you a chance to deal with any installation problems before coming to tutorial.

Outline

  1. review of terms
    image
    layers
    containers
  2. Basic docker commands
    images
    pull
    Reuse of layers
    run
    ps
    exec
    rm
    rmi
  3. Playing with a container
    getting a bash shell
    copying files in and out if containers
    mounting volumes
  4. Our first dockerfile
    Making a mysql Dockerfile
    exposing to network
  5. Second docker file
    Install our app
    Explore networking and dns
  6. Bring it all together
    Introduce compose
    Private networks

About

A environment and series of examples to help people learn about docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages