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 Networking & Swarm Mode Introduction

1,635 views

Published on

- Introducing about Docker Networking
- Introducing about new features of Docker Swarm Mode

Published in: Software

Docker Networking & Swarm Mode Introduction

  1. 1. Introduction to Docker Networking & Docker Swarm Mode Phi Huynh
  2. 2. A bit history
  3. 3.  Docker Networking  Docker Swarm Mode (Docker v1.12)  Demo  Q&A Agenda
  4. 4.  Pre-defined Networks  Bridge (default) - Containers in local Docker0 bridge  Null - Containers has no network interface  Host - Containers use host’s network interface  Multi-Host Network (Docker v1.9)  Overlay network Docker Networking
  5. 5. Bridge Network Host Machine vnet-1 10.10.0.0/16 container 4 container 5 container 1 container 2 container 3
  6. 6. Bridge Network (Continued) Host Machine frontend-net 10.11.0.0/16 container 2 container 4 container 1 container 3 container 5 backend-net 10.12.0.0/16 container 6
  7. 7. Multi-host Networking - Overlay Network (from Docker 1.9) Host Machine 1 vnet-1 10.0.0.0/24 container 2 container 4 container 1 container 3 container 5 container 6 Host Machine 2 Reference source
  8. 8. Overlay Network (Continued)
  9. 9. Docker Networking Demo Docker Networking
  10. 10. Docker Swarm Introduction Without Swarm
  11. 11. Docker Swarm Introduction Docker Swarm
  12. 12. Docker Swarm Introduction Docker Swarm  Virtualize many Docker Engines as one unified Engine  Use the same Standard Docker API  High-Availability  Resource Management  Advance Scheduling  Multiple discovery back-ends…  TLS  ...
  13. 13. Docker Swarm Mode Introduction (Docker v1.12) Images source: http://blog.nigelpoulton.com/docker-launches-kubernetes-killer/
  14. 14.  Swarm Mode Manager  Swarm Mode Worker  Scaling, desired state  Service Discovery  Load Balancing  Blue-print Deployment  Certificate Authority  TLS  … Swarm Mode Features
  15. 15. Self-Healing Manager aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet Service name: aspnet Scale to 10 instances If 2 instances were off => Create another 2 new instances node-1 node-2 node-3 node-0
  16. 16. Manager aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet Self-Organizing aspnet node-1 node-2 node-3 node-0
  17. 17. Blue-print Deployment Manager aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet $ docker service update --update-delay 10s --update-parallelism 2 --image trumhemcut/aspnetcore:2.0 aspnet node-1 node-2 node-3 Waiting for 10s… node-0
  18. 18. Load Balancer in Swarm Mode (Routing Mesh) Manager :5000 :5000 :5000 :5000 aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet node-1 node-2 node-3
  19. 19. Load Balancer in Swarm Mode (Routing Mesh) Manager :5000 :5000 :5000 :5000 aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet node-1 node-2 node-3
  20. 20. Load Balancer in Swarm Mode (Routing Mesh) No more manual setup steps  Load Balancer  Service Discovery  Registrator  Consul Template Manager :5000 :5000 :5000 :5000 aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet aspnet node-1 node-2 node-3
  21. 21. Thank you. ©2016 NashTech – Disclaimer cop to go here. NashTech – The Power to Innovatewww.nashtechglobal.com

×