DockerDay2015: Docker orchestration for developers

Post on 14-Aug-2015

56 views 5 download

Tags:

Transcript of DockerDay2015: Docker orchestration for developers

Docker Orchestration for DevelopersLinh  Tran  – GMO  VietnamLab

Docker Orchestration for Developers

Aanand PrasadEvan Hazlett

Agenda

• What is Docker Machine?

• What is new?

• Machine Demo

• What is Docker Compose?

• What is new?

• Compose Demo

What is Docker Machine?

• Host management for a container centric world

• Provisions virtual machines

• Installs / Configures Docker Engine

• Basic management of host

• Swarm Provisioning

Drivers

• Provide provisioning capabilities

• Available Drivers (14 different providers)-­ VirtualBox,  VMware  Fusion,  Hyper-­V-­ Azure,  DigitalOcean,  EC2,  GCE,  etc

Provisioning

• Installs and Configures Docker on multiple OS

• Several operating systems supported-­ Boot2Docker-­ RancherOS-­ Ubuntu-­ Debian-­ RedHat:  RHEL,  Fedora,  CentOS

What is new in 0.3.0?• Generic Driver-­ Provision  any  host  with  SSH

• Engine and Swarm Options-­ Specify  any  swarm  or  engine  option

• Swarm Provisioning out of experimental

• Custom Engine and Swarm Versions-­ Specify  stable/test  for  engine-­ Specify  image  for  Swarm

Machine Use Cases

• Local Dev and Test-­ Replaces  Boot2Docker

• Swarm Testing-­ Provision  local  test  Swarm  clusters

• Test Docker Engine versions

Demo

What is Docker Compose?

• Define and run multi-container applications

• Specify images and configuration in a simple YAML file:

docker-compose.yml

• One command to get it all running:

$ docker-compose up

What is Docker Compose?

docker-compose up:

• Builds images from Dockerfiles

• Pulls images from registries

• Creates and starts containers

• Streams their logs

Make your development environments:

• Repeatable

• Isolated

• Fast

What is Docker Compose?

What’s new in 1.3.0?

• Performance and stability improvements

• Lots more config option support

• New feature (experimental!): Smart Recreate

Only recreate containers whose configuration has been changed

$ docker-compose up --x-smart-recreate

Will eventually be the default behaviour

Demo

More Information

Machine• GitHub: github.com/docker/machine

• IRC: #docker-machine on Freenode

Compose•GitHub: github.com/docker/compose•IRC: #docker-compose on Freenode

Thank you!