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.

Docker Swarm 1.12 Overview and Demo


Published on

An overview about Docker's new 1.12 release. This slide deck covers the new features as well as demo including commands to start up your own Docker Swarm on either Docker for Mac or Docker for Windows and deploy a Docker Service

The presentation was delivered via a container running RevealJS which is where some of the some formatting issues come from in SlideShare.

Published in: Technology

Docker Swarm 1.12 Overview and Demo

  1. 1. Docker Swarm Demo Docker Swi-erland Meetup #10 13 September 2016
  2. 2. Agenda 1. Introduction 2. Swarm Overview 3. Build a Swarm
  3. 3. Brian Christner Swisscom Cloud Architect Docker Captain Background in Containers, Cloud, & Engineering
  4. 4. Swarm Overview
  5. 5. DEMO TIME
  6. 6. Follow along hKps:// -ch-meetup10
  7. 7. Step 1. Deploy a Standalone App $ docker run -d --name cats-app -p 5000:5000 vegasbrianc/cats $ docker ps $ curl
  8. 8. Step 2. If you Build it, the Swarm will come $ docker-machine create -d virtualbox mgr $ docker-machine create -d virtualbox node01 $ docker-machine create -d virtualbox node02 $ docker-machine ls
  9. 9. Step 3. Initialize the Swarm $ docker-machine ssh mgr $ docker swarm init --advertise-addr $ docker run -it -d -p 8080:8080 -e HOST= -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer
  10. 10. Step 4. Join Nodes to the Swarm $ docker-machine ssh node01 $ docker swarm join-token worker To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-1vh7h94m797al5a4pcma4p7nxdw22vqa2udwgkrkcd0twsz92d-4xgkpsqo1wyi0v Repeat for Node02
  11. 11. Step 5. Verify our Swarm $ docker-machine ssh mgr $ docker node ls $ docker info Open the Visualizer
  12. 12. Step 6. Create Overlay Network $ docker network create -d overlay catnet $ docker network ls
  13. 13. Step 7. DEPLOY $ docker service create --network catnet --name cat-app vegasbrianc/cats Time to Scale $ docker service update --replicas 6 cat-app Drain a node $ docker node update --availability drain mgr
  14. 14. Conclusion Created Swarm Nodes Joined Nodes to a Swarm Deployed our Cat service Scaled our Cat service Drained Manager Node
  15. 15. Thank you Brian Christner / @idomyowntricks hKp://