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 Docker - Making the Whale Dance

2,635 views

Published on

Docker hit the developer scene in a big way last year. It made it easy for developers to run their applications locally and easily share and deploy them. But it wasn't quite ready for prime-time. It wasn't easy to run n-tier applications locally, manage Docker across different geographical locations or cluster Docker for availability and performance.

Recent releases of Docker have introduced new capabilities and tools to help with these use cases. In this session we're going to look at these new capabilities including:

* Looking at Docker Compose for building n-tier Docker applications and managing application stacks.

* Introduce Docker Swarm which provides orchestration and clustering for Docker servers.

* See how to integrate Docker and service discovery tools.

By the end of the session, you'll have a good understanding of how to take your Docker implementation to the next level and make use of these new capabilities.

Published in: Software
  • Be the first to comment

Orchestrating Docker - Making the Whale Dance

  1. 1. Orchestrating Docker Making The Whale Dance James Turnbull @kartar 1
  2. 2. who • CTO at Kickstarter • Advisor at Docker • Open source chap • Funny accent 2
  3. 3. The Docker Book www.dockerbook.com 3
  4. 4. The Art of Monitoring www.artofmonitoring.com 4
  5. 5. Who are you folks? 5
  6. 6. What's this all about? 6
  7. 7. What is Docker? 7
  8. 8. Container virtualization 8
  9. 9. Build, ship, run 9
  10. 10. Build once 10
  11. 11. Run in many places 11
  12. 12. Isolated Layered Standard Content agnostic 12
  13. 13. Docker Basics Image & Dockerfile Container The Docker Hub 13
  14. 14. Orchestrating Docker Compose Machine Swarm Kubernetes and friends 14
  15. 15. Docker Compose Because it's not simple to build a stack 15
  16. 16. Docker Compose • Fast, isolated development environments using Docker. • Quick and easy to start. • Manages a collection of containers. 16
  17. 17. Installing Compose $ sudo pip install -U docker-compose $ docker-compose --version 17
  18. 18. Compose basics • Build your apps with Dockerfile's. • Combine applications and images with a docker- compose.yml file. 18
  19. 19. The Dockerfile FROM ubuntu:14.04 RUN apt-get -yqq update RUN apt-get -yqq install nodejs npm RUN ln -s /usr/bin/nodejs /usr/bin/node RUN mkdir -p /var/log/nodeapp ADD nodeapp /opt/nodeapp/ WORKDIR /opt/nodeapp RUN npm install 19
  20. 20. The docker-compose.yml file db: image: redis ports: - "6379" web: image: jamtur01/0redevdemo command: nodejs server.js ports: - "3000:3000" links: - db 20
  21. 21. Compose details • Can build images, use existing or pull images • Can map ports, manage links and create volumes • Still single host centric. 21
  22. 22. Start Compose $ sudo docker-compose up Creating compose_db_1... Creating compose_web_1... . . . 22
  23. 23. Demo 23
  24. 24. Compose benefits • Build complex local stacks. • Consistent and shareable. • No more... 24
  25. 25. 25
  26. 26. Docker Machine Builds machines 26
  27. 27. Machine benefits • Automatically build Docker servers. • Manage Docker servers. • Target local and cloud nodes. 27
  28. 28. Demo Building some Swarm nodes... 28
  29. 29. Docker Swarm • Clustering (management) for Docker. • Manage multiple Docker daemons. • Distribute workloads. 29
  30. 30. Demo Distributing workloads 30
  31. 31. Service orchestration 31
  32. 32. Kubernetes • Based on Google's container model • Turns containers into nodes 32
  33. 33. Mesosphere • Workload management & scheduling • Docker is an option 33
  34. 34. Questions? 34

×