SlideShare a Scribd company logo
Docker swarm
@2020 copyright KalKey training
What is Docker Swarm?
• Docker Swarm is an orchestration management tool that runs on
Docker applications. It helps end-users in creating and deploying a
cluster of Docker nodes.
• Each node of a Docker Swarm is a Docker daemon, and all Docker
daemons interact using the Docker API.
• Each container within the Swarm can be deployed and accessed by
nodes of the same cluster
@2020 copyright KalKey training@2020 copyright KalKey training
How Does Docker Swarm Work?
• In Swarm, containers are launched using services. A service is a group
of containers of the same image that enables the scaling of
applications.
• A service is a description of a task or the state, whereas the actual task
is the work that needs to be done. Docker enables a user to create
services that can start tasks.
• Before you can deploy a service in Docker Swarm, you must have at
least one node deployed.
• There are two types of nodes in Docker Swarm:
Manager node. Maintains cluster management tasks
Worker node. Receives and executes tasks from the manager
node
@2020 copyright KalKey training
Cont….
• The manager node knows the status of the worker nodes in a cluster,
and the worker nodes accept tasks sent from the manager node.
Every worker node has an agent that reports on the state of the
node's tasks to the manager. This way, the manager node can
maintain the desired state of the cluster.
• The worker nodes communicate with the manager node using API
over HTTP. In Docker Swarm, services can be deployed and accessed
by any node of the same cluster. While creating a service, you'll have
to specify which container image you're going to use.
@2020 copyright KalKey training
Docker compose
• Docker Compose is a tool for defining and running multi-container
Docker applications.
• If you have a need to define a service that requires more than one
Docker container to function, Docker Compose might be the tool for
you.
• Docker Compose depends on the docker-compose.yml file
@2020 copyright KalKey training
How Docker Compose works
• Docker Compose builds a stack of applications to run a complete
service.
• The docker-compose.yml file is broken into sections, each section
represents a single container which, when combined with the other
containers, create the service.
• For example, you could have a docker-compose.yml file that consists
of two sections:
web - the web server portion of the application.
db - the database server portion of the application.
• Each section can be comprised of different components. And because
you might need to get quite specific with the web section, you could
instruct docker-compose that the web portion will be defined in the
Dockerfile
@2020 copyright KalKey training
docker-compose.yml
• This is a YAML file, so the formatting must be consistent.
@2020 copyright KalKey training
DEMO
@2020 copyright KalKey training

More Related Content

PPTX
Jenkins introduction
PPT
Docker swarm
PPTX
Docker introduction
PDF
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
PPTX
Docker introduction (1)
PPTX
Jenkins advance topic
PDF
Getting Started With Docker | Docker Tutorial | Docker Training | Edureka
PPTX
Introduction to Docker
Jenkins introduction
Docker swarm
Docker introduction
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker T...
Docker introduction (1)
Jenkins advance topic
Getting Started With Docker | Docker Tutorial | Docker Training | Edureka
Introduction to Docker

What's hot (19)

PPTX
What is Docker?
PPTX
Ansible day 1.ppt
PPTX
ACM Gazi Docker?
PDF
Introduction to Docker - Vellore Institute of Technology
PDF
Docker vs VM | | Containerization or Virtualization - The Differences | DevOp...
PDF
DockerCon SF 2015: DHE/DTR
PPTX
DockerCon 15 Keynote - Day 2
PDF
Introduction to Docker | Docker and Kubernetes Training
PDF
Docker for .NET Developers - Michele Leroux Bustamante, Solliance
PDF
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
PDF
Running containerized application in AWS ECS
PDF
Node.js Rocks in Docker for Dev and Ops
PPTX
Docker 101 : Introduction to Docker and Containers
PPTX
Deploying OpenStack Using Docker in Production
PDF
Docker Registry V2
PDF
Docker container basics and efficiency of Kubernetes
PPTX
Docker - A high level introduction to dockers and containers
PDF
DockerCon SF 2015: Ben Golub's Keynote Day 1
PDF
Introduction to Docker Containers - Docker Captain
What is Docker?
Ansible day 1.ppt
ACM Gazi Docker?
Introduction to Docker - Vellore Institute of Technology
Docker vs VM | | Containerization or Virtualization - The Differences | DevOp...
DockerCon SF 2015: DHE/DTR
DockerCon 15 Keynote - Day 2
Introduction to Docker | Docker and Kubernetes Training
Docker for .NET Developers - Michele Leroux Bustamante, Solliance
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
Running containerized application in AWS ECS
Node.js Rocks in Docker for Dev and Ops
Docker 101 : Introduction to Docker and Containers
Deploying OpenStack Using Docker in Production
Docker Registry V2
Docker container basics and efficiency of Kubernetes
Docker - A high level introduction to dockers and containers
DockerCon SF 2015: Ben Golub's Keynote Day 1
Introduction to Docker Containers - Docker Captain
Ad

Similar to Docker swarm (20)

PPTX
Docker introduction (1)
PPTX
Docker introduction (1)
PDF
PPTX
Docker introduction (1)
PPTX
Docker introduction (1)
PDF
Docker interview Questions-1.pdf
PDF
Docker interview Questions-2.pdf
PDF
DEVOPS UNIT 4 docker and services commands
PDF
Docker slides
PPTX
Introduction to Dockers and containers
PDF
Introduction to container based virtualization with docker
PPTX
Getting Started With Docker: Simplifying DevOps
PDF
Rails Applications with Docker
PPTX
Working ,Introduction to Docker, Scope,,
PPTX
Docker Overview
PPTX
Docker - A Quick Introduction Guide
PPTX
Docker OpenStack Cloud Foundry
PDF
PPTX
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
PDF
Unit No. III Docker ppt part 2.pdf Cloud Microservices & Application
Docker introduction (1)
Docker introduction (1)
Docker introduction (1)
Docker introduction (1)
Docker interview Questions-1.pdf
Docker interview Questions-2.pdf
DEVOPS UNIT 4 docker and services commands
Docker slides
Introduction to Dockers and containers
Introduction to container based virtualization with docker
Getting Started With Docker: Simplifying DevOps
Rails Applications with Docker
Working ,Introduction to Docker, Scope,,
Docker Overview
Docker - A Quick Introduction Guide
Docker OpenStack Cloud Foundry
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Unit No. III Docker ppt part 2.pdf Cloud Microservices & Application
Ad

More from Gourav Varma (20)

PPTX
Aws day 4
PPTX
Aws day 3
PPTX
Aws day 2
PPTX
Ansible day 4
PPTX
Ansible day 3
PPTX
Adnible day 2.ppt
PPTX
Version control git day03(amarnath dada)
PPTX
Version control git day02
PPTX
Version control git day01
PPTX
Dev ops
PPTX
Shell programming 2
PPTX
Introduction to linux
PPTX
Final terraform
PPTX
Version control git day03
PPTX
Version control git day02
PPTX
Version control git day01
PPTX
Docker advance topic (2)
PPTX
Introduction of devops
PPTX
Docker advance1
PPTX
Introduction to linux day-3
Aws day 4
Aws day 3
Aws day 2
Ansible day 4
Ansible day 3
Adnible day 2.ppt
Version control git day03(amarnath dada)
Version control git day02
Version control git day01
Dev ops
Shell programming 2
Introduction to linux
Final terraform
Version control git day03
Version control git day02
Version control git day01
Docker advance topic (2)
Introduction of devops
Docker advance1
Introduction to linux day-3

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
RMMM.pdf make it easy to upload and study
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Business Ethics Teaching Materials for college
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Institutional Correction lecture only . . .
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
master seminar digital applications in india
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Insiders guide to clinical Medicine.pdf
TR - Agricultural Crops Production NC III.pdf
Pharma ospi slides which help in ospi learning
RMMM.pdf make it easy to upload and study
Renaissance Architecture: A Journey from Faith to Humanism
STATICS OF THE RIGID BODIES Hibbelers.pdf
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Business Ethics Teaching Materials for college
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Institutional Correction lecture only . . .
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Anesthesia in Laparoscopic Surgery in India
master seminar digital applications in india
Microbial diseases, their pathogenesis and prophylaxis
Module 4: Burden of Disease Tutorial Slides S2 2025
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Week 4 Term 3 Study Techniques revisited.pptx
Insiders guide to clinical Medicine.pdf

Docker swarm

  • 2. What is Docker Swarm? • Docker Swarm is an orchestration management tool that runs on Docker applications. It helps end-users in creating and deploying a cluster of Docker nodes. • Each node of a Docker Swarm is a Docker daemon, and all Docker daemons interact using the Docker API. • Each container within the Swarm can be deployed and accessed by nodes of the same cluster @2020 copyright KalKey training@2020 copyright KalKey training
  • 3. How Does Docker Swarm Work? • In Swarm, containers are launched using services. A service is a group of containers of the same image that enables the scaling of applications. • A service is a description of a task or the state, whereas the actual task is the work that needs to be done. Docker enables a user to create services that can start tasks. • Before you can deploy a service in Docker Swarm, you must have at least one node deployed. • There are two types of nodes in Docker Swarm: Manager node. Maintains cluster management tasks Worker node. Receives and executes tasks from the manager node @2020 copyright KalKey training
  • 4. Cont…. • The manager node knows the status of the worker nodes in a cluster, and the worker nodes accept tasks sent from the manager node. Every worker node has an agent that reports on the state of the node's tasks to the manager. This way, the manager node can maintain the desired state of the cluster. • The worker nodes communicate with the manager node using API over HTTP. In Docker Swarm, services can be deployed and accessed by any node of the same cluster. While creating a service, you'll have to specify which container image you're going to use. @2020 copyright KalKey training
  • 5. Docker compose • Docker Compose is a tool for defining and running multi-container Docker applications. • If you have a need to define a service that requires more than one Docker container to function, Docker Compose might be the tool for you. • Docker Compose depends on the docker-compose.yml file @2020 copyright KalKey training
  • 6. How Docker Compose works • Docker Compose builds a stack of applications to run a complete service. • The docker-compose.yml file is broken into sections, each section represents a single container which, when combined with the other containers, create the service. • For example, you could have a docker-compose.yml file that consists of two sections: web - the web server portion of the application. db - the database server portion of the application. • Each section can be comprised of different components. And because you might need to get quite specific with the web section, you could instruct docker-compose that the web portion will be defined in the Dockerfile @2020 copyright KalKey training
  • 7. docker-compose.yml • This is a YAML file, so the formatting must be consistent. @2020 copyright KalKey training