Docker

Heroku
Kubernetes (is an open source container cluster manager by Google)
maestro-ng (simple cluster manager)
Fig (Old cluster manager)

URLs

Dockerfile
https://www.digitalocean.com/community/tutorials/docker-explained-using-dockerfiles-to-automate-building-of-images
http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html
http://deis.io/overview/
PaaS
Beanstalk

Commands

 

# How to backup a running docker:
# First commit the running docker
# The -p option will PAUSE the running machine
docker commit -p container_id newnamebkp
# Now generate a tar archive from the image
docker save -o /var/backups/name.tar newnamebkp
# Committing an existing container
#docker commit $CONTAINERID diretorio/nome:1.0 (versioning, create image)
# Ex.
docker commit $CONTAINERID containers/nix-apache:1.0
docker run -i -t -p 8080:80 containers/nix-apache:1.0 /bin/bash

# How to access docker container using bash

docker exec -i -t $CONTAINERID  /bin/bash

# Useful commands

docker exec $CONTAINERID ls (run command at guest)
docker inspect $CONTAINERID (show all data about containers, ip, image…)
docker stats (show usage stats)
docker stop $CONTAINERID (Stop and save)
docker start $CONTAINERID
docker rm $CONTAINERID (remove)
docker run --name laladb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag
ctrl + p q (Exit an leave container open)
docker ps (List containers)
docker ps -a (list all containers)
docker attach $CONTAINERID (join container )
docker diff (Show diff files from the begining of container)
docker run -i -t ubuntu:15.10 /bin/bash (Run)
docker run -i -t -p 8080:80 ubuntu:14.10 /bin/bash (map 8080 host to 80 guest)
docker run -d -p x.x.x.x:hostPort:containerPort registry/image
# Autostart existing container
docker update --restart=always containername

Docker Cookbook

5.3 pg 135
8.10 Using Kubernetes in the Cloud via GCE pg. 254
10.2 Jenkins Continous Delivery pg. 304
https://labs.ctl.io/deploying-to-kubernetes-with-panamax/

Nice videos

Docker Compose (official from docker)