SlideShare a Scribd company logo
24/11/2016
DockerWorkshop - 2nd Day
Orchestrating Docker Containers
Hugo Arraes Henley - hugohenley at id dot uff dot br
1
Agenda
✤ Ecosystem - An overview
✤ Rancher
✤ Mesos
✤ Marathon
✤ Service Discovery
✤ Monitoring Systems
✤ CI and Deploy
Before we start…
✤ Questions: #workshop-docker at Slack
✤ Urgent questions: ask anytime
✤ We will have a break at 15:45~16:00
✤ Today: 80 slides
✤ Check your cellphones
3
The Ecosystem
4
The Ecosystem
and more…
5
Docker Workshop - Orchestrating Docker Containers
The Ecosystem
and much more…
7
8
Docker Workshop - Orchestrating Docker Containers
Rancher
✤ Provides a web interface to manage your containers
✤ Helps you to create your own cluster
✤ Helps you to deploy your containerized apps
✤ Natively supports and manages all of your
Kubernetes, Mesos, and Swarm clusters.
✤ Easy to install!
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
https://docs.rancher.com/rancher/v1.2/en/installing-rancher/installing-server/
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
16
Docker Workshop - Orchestrating Docker Containers
https://speakerdeck.com/jbeda/containers-at-scale
Docker Workshop - Orchestrating Docker Containers
3300 containers/sec
Of course it needs orchestration…
Docker Workshop - Orchestrating Docker Containers
23
Mesos
Mesos
Docker Workshop - Orchestrating Docker Containers
https://www.linux.com/news/4-unique-ways-uber-twitter-paypal-and-hubspot-use-apache-mesos
Mesos atTwitter
https://mesosphere.com/blog/2014/06/11/how-twitter-uses-mesos-video/
Docker Workshop - Orchestrating Docker Containers
“In step (1), slave 1 reports to the master that it has 4 CPUs
and 4 GB of memory free. The master then invokes the
allocation module, which tells it that framework 1 should be
offered all available resources.
In step (2), the master sends a resource offer describing these
resources to framework 1.
In step (3), the framework’s scheduler replies to the master
with information about two tasks to run on the slave, using
⟨2 CPUs, 1 GB RAM⟩ for the first task, and ⟨1 CPUs, 2 GB
RAM⟩ for the second task.
Finally, in step (4), the master sends the tasks to the slave,
which allocates appropriate resources to the framework’s
executor, which in turn launches the two tasks (depicted with
dotted borders). Because 1 CPU and 1 GB of RAM are still
free, the allocation module may now offer them to
framework 2.”
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
CREATING A NEW APP…
Docker Workshop - Orchestrating Docker Containers
Nice! But how people can access my app if I
have no control about where it is running…?
SERVICE DISCOVERY
44
Docker Workshop - Orchestrating Docker Containers
4 REDIS INSTANCES
Docker Workshop - Orchestrating Docker Containers
SCALING DOWN…
Docker Workshop - Orchestrating Docker Containers
For every new container, a software called registrator
sends the list of running containers to the consul server
gliderlabs/registrator
$ docker run -d 
--name=registrator 
--net=host 
--volume=/var/run/docker.sock:/tmp/docker.sock 
gliderlabs/registrator:latest 
consul://localhost:8500
Docker Workshop - Orchestrating Docker Containers
HAPROXY TEMPLATE
http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html
Consul template updates your HAProxy
configuration file based on what is running!
That’s why your clients can access your
app, no matter where it's running :)
Monitoring
57
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
“Prometheus collects metrics from configured targets at given
intervals, evaluates rule expressions, displays the results, and
can trigger alerts if some condition is observed to be true.”
https://www.infoq.com/news/2015/12/dockercon-docker-monitoring
https://github.com/vegasbrianc/prometheus
Prometheus References
✤ https://developers.soundcloud.com/blog/prometheus-monitoring-at-
soundcloud
✤ https://www.brianchristner.io/how-to-setup-prometheus-docker-monitoring/
✤ https://prometheus.io/docs/instrumenting/exporters/
✤ https://www.infoq.com/news/2015/12/dockercon-docker-monitoring
✤ https://github.com/vegasbrianc/prometheus
✤ https://www.brianchristner.io/updated-docker-monitoring-prometheus-grafana/
✤ https://www.ctl.io/developers/blog/post/monitoring-docker-services-with-
prometheus/
65
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
RECAP
Docker + Mesos + Marathon + Rancher + Consul + Registrator +
Consul Template + cAdvisor + Prometheus + Grafana
=
:)
DEPLOYING
YOU WILL NEED A CI
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
Docker Workshop - Orchestrating Docker Containers
PUTTING EVERYTHING TOGETHER…
registrator
consul-templateDev
User
Docker + Mesos + Marathon + Rancher + Consul + Registrator +
Consul Template + cAdvisor + Prometheus + Grafana + Jenkins
=
:)
Docker Workshop - Orchestrating Docker Containers
Remember: there is no silver bullet!
81
Thank you!
82
hugohenley at id dot uff dot br

More Related Content

What's hot (20)

PDF
Containerd: Building a Container Supervisor by Michael Crosby
Docker, Inc.
 
PPTX
Container Monitoring with Sysdig
Sreenivas Makam
 
PDF
Docker orchestration using core os and ansible - Ansible IL 2015
Leonid Mirsky
 
PDF
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Brice Argenson
 
PDF
Small, Simple, and Secure: Alpine Linux under the Microscope
Docker, Inc.
 
PPTX
Docker Networking & Swarm Mode Introduction
Phi Huynh
 
PPTX
CI-CD WITH GITLAB WORKFLOW
AddWeb Solution Pvt. Ltd.
 
PPTX
Lando - AddWeb Solution
AddWeb Solution Pvt. Ltd.
 
PPTX
KubeCon EU 2016: Transforming the Government
KubeAcademy
 
PDF
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
謝 宗穎
 
PDF
Docker Compose and Panamax - ContainerDays Boston - June 2015
Jonas Rosland
 
PDF
Provisioning & Deploying with Docker
Erica Windisch
 
PDF
swarmmode-dojo
Clarence Bakirtzidis
 
PDF
Docker swarm - An introduction to Docker native clustering
Shantanu Deshpande
 
PDF
Kubernetes in Google Cloud
Abilash Rajasekaran
 
PDF
Docker puppetcamp london 2013
Tomas Doran
 
PDF
RancherOS - The perfect place to run Docker
Saputro Aryulianto
 
PPTX
Docker workshop DevOpsDays Amsterdam 2014
Pini Reznik
 
PDF
Discovering Volume Plugins with Applications using Docker Toolbox and VirtualBox
Clinton Kitson
 
PDF
Docker n co
Rohit Jnagal
 
Containerd: Building a Container Supervisor by Michael Crosby
Docker, Inc.
 
Container Monitoring with Sysdig
Sreenivas Makam
 
Docker orchestration using core os and ansible - Ansible IL 2015
Leonid Mirsky
 
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Brice Argenson
 
Small, Simple, and Secure: Alpine Linux under the Microscope
Docker, Inc.
 
Docker Networking & Swarm Mode Introduction
Phi Huynh
 
CI-CD WITH GITLAB WORKFLOW
AddWeb Solution Pvt. Ltd.
 
Lando - AddWeb Solution
AddWeb Solution Pvt. Ltd.
 
KubeCon EU 2016: Transforming the Government
KubeAcademy
 
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
謝 宗穎
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Jonas Rosland
 
Provisioning & Deploying with Docker
Erica Windisch
 
swarmmode-dojo
Clarence Bakirtzidis
 
Docker swarm - An introduction to Docker native clustering
Shantanu Deshpande
 
Kubernetes in Google Cloud
Abilash Rajasekaran
 
Docker puppetcamp london 2013
Tomas Doran
 
RancherOS - The perfect place to run Docker
Saputro Aryulianto
 
Docker workshop DevOpsDays Amsterdam 2014
Pini Reznik
 
Discovering Volume Plugins with Applications using Docker Toolbox and VirtualBox
Clinton Kitson
 
Docker n co
Rohit Jnagal
 

Viewers also liked (20)

PPTX
Introduction Into Docker Ecosystem
Alexander Pastukhov, OCPJP, OCPJWSD
 
PDF
[DockerHN_2nd_meetup] Ecosystem & Orchestration Tools
Nguyen Anh Tu
 
PDF
AWS Elastic Container Service - DockerHN
Nguyen Anh Tu
 
PDF
Docker for Developers: Dev, Test, Deploy @ BucksCo Devops at MeetMe HQ
Erica Windisch
 
PDF
Docker Orchestrators
Andrew Sullivan
 
PDF
Docker Introduction
Peng Xiao
 
PDF
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
ClusterHQ
 
PDF
How Docker Fits into DevOps Ecosystem
Edureka!
 
PDF
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
Daniel Krook
 
PDF
แบบฝึก8
kaimmikar123
 
PPT
Social media strategy | 2013 Plan
raghu sampath
 
PDF
Grafico diario del dax perfomance index para el 08 02-2012
Experiencia Trading
 
PPTX
Telecom 2020
Reeha Paul
 
PPT
California pathways through sjsu
moejarv
 
PDF
Deloitte-Technology-Fast50
Gaurav S
 
DOCX
Mathematics survey report
Doreen Yeo
 
PDF
About- Face: Reflections on Growing an Open-Source Mentality
icemobile
 
PPT
Oral Presentation marc nogue
pujiman
 
PPT
"Customer Service Delivery" Seminar Presentation
EngageBusinessNetwork
 
PPTX
IBAGRADS Admission Counseling Seminar
IBAGRADS-Hunt
 
Introduction Into Docker Ecosystem
Alexander Pastukhov, OCPJP, OCPJWSD
 
[DockerHN_2nd_meetup] Ecosystem & Orchestration Tools
Nguyen Anh Tu
 
AWS Elastic Container Service - DockerHN
Nguyen Anh Tu
 
Docker for Developers: Dev, Test, Deploy @ BucksCo Devops at MeetMe HQ
Erica Windisch
 
Docker Orchestrators
Andrew Sullivan
 
Docker Introduction
Peng Xiao
 
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
ClusterHQ
 
How Docker Fits into DevOps Ecosystem
Edureka!
 
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
Daniel Krook
 
แบบฝึก8
kaimmikar123
 
Social media strategy | 2013 Plan
raghu sampath
 
Grafico diario del dax perfomance index para el 08 02-2012
Experiencia Trading
 
Telecom 2020
Reeha Paul
 
California pathways through sjsu
moejarv
 
Deloitte-Technology-Fast50
Gaurav S
 
Mathematics survey report
Doreen Yeo
 
About- Face: Reflections on Growing an Open-Source Mentality
icemobile
 
Oral Presentation marc nogue
pujiman
 
"Customer Service Delivery" Seminar Presentation
EngageBusinessNetwork
 
IBAGRADS Admission Counseling Seminar
IBAGRADS-Hunt
 
Ad

Similar to Docker Workshop - Orchestrating Docker Containers (20)

PDF
Build cloud native solution using open source
Nitesh Jadhav
 
PDF
Orchestrating Linux Containers while tolerating failures
Docker, Inc.
 
PDF
Container (Docker) Orchestration Tools
Dhilipsiva DS
 
PDF
Docker-v3.pdf
Bruno Cornec
 
PDF
Prometheus and Docker (Docker Galway, November 2015)
Brian Brazil
 
PDF
Docker orchestration voxxed days berlin 2016
Grzegorz Duda
 
PDF
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
PDF
Docker Swarm and Traefik 2.0
Jakub Hajek
 
PDF
New Docker Features for Orchestration and Containers
Jeff Anderson
 
PPTX
Docker Basic to Advance
Paras Jain
 
PPTX
Docker intro
spiddy
 
PDF
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
devopsdaysaustin
 
PDF
Higher order infrastructure: from Docker basics to cluster management - Nicol...
Codemotion
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
PDF
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
 
PDF
Docker Dojo
Hugo González Labrador
 
PDF
Docker in production service discovery with consul - road to opscon 2015
Giovanni Toraldo
 
PDF
Alibaba Cloud Conference 2016 - Docker Enterprise
John Willis
 
PPTX
Docker Platform and Ecosystem
Patrick Chanezon
 
Build cloud native solution using open source
Nitesh Jadhav
 
Orchestrating Linux Containers while tolerating failures
Docker, Inc.
 
Container (Docker) Orchestration Tools
Dhilipsiva DS
 
Docker-v3.pdf
Bruno Cornec
 
Prometheus and Docker (Docker Galway, November 2015)
Brian Brazil
 
Docker orchestration voxxed days berlin 2016
Grzegorz Duda
 
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
Docker Swarm and Traefik 2.0
Jakub Hajek
 
New Docker Features for Orchestration and Containers
Jeff Anderson
 
Docker Basic to Advance
Paras Jain
 
Docker intro
spiddy
 
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
devopsdaysaustin
 
Higher order infrastructure: from Docker basics to cluster management - Nicol...
Codemotion
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
 
Docker in production service discovery with consul - road to opscon 2015
Giovanni Toraldo
 
Alibaba Cloud Conference 2016 - Docker Enterprise
John Willis
 
Docker Platform and Ecosystem
Patrick Chanezon
 
Ad

Recently uploaded (20)

PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Python basic programing language for automation
DanialHabibi2
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
July Patch Tuesday
Ivanti
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 

Docker Workshop - Orchestrating Docker Containers