Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Orchestrating Distributed Apps with Docker

2,668 views

Published on

A brief introduction to Docker orchestration tools:
Machine, Swarm, Compose.

Published in: Technology

Orchestrating Distributed Apps with Docker

  1. 1. Orchestrating Distributed Apps Carl Su Dec 29, 2014
  2. 2. Carl Su linked.in/carlsu Docker Taipei co-organizer Container Summit speaker PyCon APAC speaker Docker contributor
  3. 3. 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.
  4. 4. Docker Machine
  5. 5. Drivers • VirtualBox • DigitalOcean • Microsoft Azure • Amazon EC2
  6. 6. VirtualBox
  7. 7. DigitalOcean 2. Pass your token with --digitalocean-access-token option. 1. Create a personal access token under "Apps & API". http://goo.gl/afzD6c
  8. 8. 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.
  9. 9. Amazon EC2 • Access Key ID • Secret Access Key • VPC ID
  10. 10. Docker Swarm
  11. 11. Native Clustering System
  12. 12. Nodes Setup • Docker 1.4.0 or later. • TLS authentication • Bind Docker on a network interface. • -H 0.0.0.0:2375
  13. 13. 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>
  14. 14. Advanced Scheduling • Filters • Constraint • Port • Health • Strategies • bin packing • random
  15. 15. Docker Compose
  16. 16. Orchestration Services
  17. 17. Reference • https://github.com/docker/machine • https://github.com/docker/swarm • https://github.com/docker/docker/issues/9694 • https://www.docker.com/
  18. 18. Would You Like To Know More? • Facebook https://www.facebook.com/groups/docker.taipei/ • Meetup http://www.meetup.com/Docker-Taipei/

×