Presented at PyOhio on 7/26/14
Docker is an open-source engine that automates the deployment of any application as a lightweight, portable, self-sufficient container that will run virtually anywhere.
$ docker run busybox /bin/echo foobar >> /tmp/foo.txt
$ docker commit -m "Add foo.txt" e25605a6d745 atbaker/foobar
# Spin-docker example dockerfile for a Django project # Use phusion/baseimage as base image FROM phusion/baseimage:0.9.8 MAINTAINER Andrew T. Baker <email@example.com>
# Add the Django app and install its requirements ADD sd_sample_project /var/www/django RUN apt-get install -y python-pip RUN pip install virtualenv RUN virtualenv /var/www/venv RUN /.../venv/bin/pip install -r /.../requirements.txt
|image||repository||collection of commits|
|container||clone||used for local execution|
|docker hub||GitHub||popular remote server|
If not, it's tutorial time!