DockerCon SF 2015: Orchestration for Devs (machine + compose)

15
Docker Orchestration for Developers Aanand Prasad Evan Hazlett

Transcript of DockerCon SF 2015: Orchestration for Devs (machine + compose)

Docker Orchestration for Developers

Aanand Prasad

Evan Hazlett

Agenda

• What is Docker Machine?

• What is new?

• Machine Demo

• What is Docker Compose?

• What is new?

• Compose Demo

Betty Junod
Let's have 1 agenda that flows from Machine to Compose

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

Betty Junod
Is it cheesy to put the logos instead? visually to also fill up the page
Evan Hazlett
Works for me -- do we happen to have some available? If not, I can search.

Provisioning

• Installs and Configures Docker on multiple OS

• Several operating systems supported- Boot2Docker

- RancherOS

- Ubuntu

- Debian

- RedHat: RHEL, Fedora, CentOS

Betty Junod
again - is it lame to put logos for the OS?
Evan Hazlett
Nope -- do we have them available? If not I can search.

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

Betty Junod
Update title "Machine Use Cases"
Betty Junod
separately - do you have commands for the Swarm provisioning / testing and the testing of engine versions? I would like to have those available in a "Machine Demo Kit"
Evan Hazlett
I can get them to you.

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

Betty Junod
I think we make this into 1 closing slide for Machine and Compose
Evan Hazlett
I agree -- I wasn't sure what you wanted to do with the transition but if we have one we shouldn't have multiple throughout IMO -- I think we should do a single at the end. +1

Thank you!