Getting started with Docker

Justin Coyne

Stanford Libraries

Samvera Connect - October 2019

Schedule

  • 9:00 Start
  • Introductions
  • A few key terms
  • Workshop lessons
  • 10:30 - 10:45 Break
  • Continue lessons
  • 11:45 Wrap-up
  • 12:00 Finish

What we're going to do

  • Learn a bit about docker
  • Progressively build up a docker app

Ground rules

  • We're all here to learn -- ask question
  • Work together

Get on board

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

Thank you!

Julian Fahrer

https://learndocker.online/

What is Docker?

"Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package.

The Concepts

  • Image
  • Container
  • Volume

"A Docker image is a file, comprised of multiple layers, used to execute code in a Docker container"

Images become containers at runtime when they run on Docker Engine

Containers are....

  • Standard
  • Lightweight
  • Isolated

"Volumes are the preferred mechanism for persisting data generated by and used by Docker containers"

Volumes can use storage drivers

Why should I use Docker?

The workshop

https://github.com/jcoyne/dockerizing_rails

Fin.