Docker How To

Joshua Harris

About Me

  • Rising Junior at Old Dominion University
  • Computer Science
  • Backend Web Development
  • Play Instruments

What is Docker

"Docker allows you to package an application with all of its dependencies into a standardized unit for software development."

from Docker's website

Docker is a Container Engine

Docker uses LXC (Linux Container) in the building of their containers

Containers

What are Containers?

A container is made up of...

  • runtime environment
  • your application
  • application's dependencies.

How are Containers different than VMs

  • Containers don't run a full copy of operating system

  • Containers don't virtualize hardware (Much less taxing on RAM and CPU)

  • Containers can be built and destroyed very quickly

  • A container will run the same way, anywhere

Let's Get Started

Setup

Download and install Docker

Mac & Windows

Docker for non-linux machines runs in an extremely lightweight VM

Diving Deeper

Docker Hub

Registry service for Docker containers

Demo Time!

Implementing Docker

Local Development

docker run -d -p 80:80 --name figlet-app -v ~/dir/to/code:/app figlet-app-image

Amazon Web Services

Many PaaS's (Platform as a Service) like AWS offer ways to run Docker containers on their servers

In Conclusion

Credits

Slides By Joshua Harris
Presentation Built using reveal.js
epeay - figlet example