orchestrating distributed apps with docker

Post on 12-Jul-2015

1.809 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Orchestrating Distributed Apps

Carl SuDec 29, 2014

Carl Sulinked.in/carlsu

Docker Taipei co-organizer

Container Summit speaker

PyCon APAC speaker

Docker contributor

Agenda• Docker Machine

• Takes you from zero-to-Docker in seconds.

• Docker Swarm

• Native clustering for distributed apps.

• Docker Compose

• The last piece of the orchestration puzzle.

Docker Machine

Drivers• VirtualBox

• DigitalOcean

• Microsoft Azure

• Amazon EC2

VirtualBox

DigitalOcean

2. Pass your token with --digitalocean-access-token option.

1. Create a personal access token under "Apps & API".

http://goo.gl/afzD6c

Microsoft Azure

1. Create a subscription with a cert.

2. Go to Settings->Manage Certificates and upload your cert.

3. Pass your subscription ID and cert to create a Docker machine.

Amazon EC2

• Access Key ID

• Secret Access Key

• VPC ID

Docker Swarm

Native Clustering System

Nodes Setup• Docker 1.4.0 or later.

• TLS authentication

• Bind Docker on a network interface.

• -H 0.0.0.0:2375

Discovery• hosted discovery service

swarm join --discovery token://<token> --addr=<node_ip:2375>

• static file describing the cluster

swarm manage --discovery file:///tmp/my_cluster -H=<swarm_ip:swarm_port>

• etcd

swarm manage --discovery etcd://<etcd_ip>/<path> -H=<swarm_ip:swarm_port>

Advanced Scheduling• Filters

• Constraint

• Port

• Health

• Strategies

• bin packing

• random

Docker Compose

Orchestration Services

Reference• https://github.com/docker/machine

• https://github.com/docker/swarm

• https://github.com/docker/docker/issues/9694

• https://www.docker.com/

Would You Like To Know More?

• Facebook

https://www.facebook.com/groups/docker.taipei/

• Meetup

http://www.meetup.com/Docker-Taipei/

top related