@joshkurz
Chroot
1979
Jail
Zone
LXC
Docker
2000
2005
2006
2013
# build the container
docker build .
# run matrix in the background with -d
# allocate tty with -t
docker run -t -d matrix
# execute a command in the container and get a bash shell running
# this gives us access to the internals of the running container
docker exec -it $containerid /bin/bash
touch foobar
exit
# show diff of filesystem
docker diff $containerid
# start new container
docker run -it -d matrix
# show both contianers
docker ps
# stop each container
docker stop $containerid
docker stop $containerid2
# show that both of thier instances are left over and can be restarted
docker ps -a
# remove all containers
docker rm $(docker ps -qa)
docker build -t joshkurz/docker-ftw-demo
docker run -it -p 3000:3000 joshkurz/docker-ftw-demo
# run twitter-stream on local
docker run --env-file=test-twitter.secrets joshkurz/twitter-stream
# run dockerftw in production
kubectl create namespace docker-ftw
kubectl apply -f deployment.secrets