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.

2

Share

Download to read offline

Infinite Scalable Systems with Docker

Download to read offline

Infinite scalable systems with Docker, Docker Machine, and Docker Swarm

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Infinite Scalable Systems with Docker

  1. 1. #dfist#dfist Infinite Scalable Systems with Docker Huseyin BABAL Full-Stack Software Engineer @ GittiGidiyor
  2. 2. #dfist#dfist
  3. 3. #dfist#dfist Docker
  4. 4. #dfist#dfist What is Docker Docker lets you to package application with its dependencies like code, runtime, system libraries, etc. inside one container
  5. 5. #dfist#dfist VM vs Docker Infrastructure Infrastructure Host OS OS Hypervisor Docker Engine Guest OS Guest OS Guest OS bins/libs bins/libs bins/libs app1 app2 app3 bins/libs bins/libs bins/libs app1 app2 app3
  6. 6. #dfist#dfist Docker Machine
  7. 7. #dfist#dfist What is Docker Machine? Docker Machine lets you to create Docker host and specific client to connect Docker on local computer, cloud providers, even in your own data center.
  8. 8. #dfist#dfist Creating Docker Machine docker-machine create -d virtualbox default
  9. 9. #dfist#dfist Docker Swarm
  10. 10. #dfist#dfist What is Docker Swarm? Native clustering for Docker
  11. 11. #dfist#dfist Howto Create Swarm? SID=docker run swarm create $SID will be used on clustering
  12. 12. #dfist#dfist Master Create docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://$SID swarm-master
  13. 13. #dfist#dfist Agent Create docker-machine create -d virtualbox --swarm --swarm-discovery token://$SID swarm-agent-00
  14. 14. #dfist#dfist Swarm Master Process
  15. 15. #dfist#dfist Swarm Agent Process
  16. 16. #dfist#dfist Swarm Relay Network
  17. 17. #dfist#dfist Architectural Design
  18. 18. #dfist#dfist Components docker-gen Image Nginx NodeJS Application
  19. 19. #dfist#dfist Docker Project
  20. 20. #dfist#dfist docker-gen Image Generates files from docker container metadata ● Centralized Logging ● Log Rotation ● Reverse Proxy Configs ● Service Discovery
  21. 21. #dfist#dfist How to Build? docker build -t docker-gen ./docker-gen
  22. 22. #dfist#dfist How to Run? docker run -d --restart=always --name=docker-gen --env=affinity:image==docker-gen:latest --env=DOCKER_HOST=tcp://192.168.99.103:3376 docker-gen
  23. 23. #dfist#dfist Nginx
  24. 24. #dfist#dfist How to Run? docker run -d --restart=always --name=nginx -p 80:80 -- volumes-from=docker-gen nginx
  25. 25. #dfist#dfist http { upstream api.nodejs.com { server 192.168.99.100:5001; server 192.168.99.100:5002; } server { listen 80; location / { proxy_pass http://api.nodejs.com; } } }
  26. 26. #dfist#dfist NodeJS Application
  27. 27. #dfist#dfist How to Run? docker run -d --restart=always -p 3000 --name hello- express-1 -P --env VHOST=api.nodejs.com huseyinbabal/express-hello
  28. 28. #dfist#dfist Load Balancer swarm-agent-01 swarm-agent-02 swarm-master Docker Gen
  29. 29. #dfist#dfist Show Time! You can clone project here
  30. 30. #dfist Thank you! Questions?Questions? @huseyinbabal +HüseyinBABAL http://huseyinbabal.net
  • azizunsal

    Dec. 3, 2015
  • ecamdere

    Dec. 1, 2015

Infinite scalable systems with Docker, Docker Machine, and Docker Swarm

Views

Total views

929

On Slideshare

0

From embeds

0

Number of embeds

30

Actions

Downloads

6

Shares

0

Comments

0

Likes

2

×