How can I achieve high availability of my application using docker swarm?

0 votes
Explain the concept of high availability using docker swarm also specify how can i achieve this objective for my web application?
Jul 5 in Docker by Namik
• 800 points
20 views

1 answer to this question.

0 votes

High Availability is a feature where you have multiple instances of your applications running in parallel to handle increased load or failures.

These two paradigms fit perfectly into Docker Swarm,the built-in orchestrator that comes with Docker.

Deploying your applications like this will improve your uptime which translates to happy users.

For creating a high availability container in the Docker Swarm, you need to deploy a docker service to the swarm with nginx image.

This can be done by using docker swarm create command as specified:

# docker service create --name nginx --publish 80:80 nginx

To explore more about docker swarm and how you could use it to achieve high availability do have a look:

https://www.edureka.co/blog/docker-swarm-cluster-of-docker-engines-for-high-availability

Hope this helps!

answered Jul 5 by Sirajul
• 5,960 points

Related Questions In Docker

0 votes
2 answers

How can I inspect the file system of a failed `docker build

Failed command is a build that has ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 6,900 points
53 views
0 votes
1 answer

How do I scale in Docker Swarm Mode W/Terraform Digital Ocean Load Balancing

The solution you could build for Digital ...READ MORE

answered Jun 19, 2018 in Docker by shubham
• 6,870 points
165 views
+2 votes
11 answers
0 votes
1 answer

How can I expose more than 1 port with Docker?

To expose just one port, this is ...READ MORE

answered Jul 25, 2018 in Docker by Kalgi
• 37,320 points
24 views
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
952 views
0 votes
1 answer
0 votes
1 answer

What is a docker file? How do I create a docker image with dockerfile?

 A Dockerfile is a script/text configuration file that contains ...READ MORE

answered Jun 7 in Docker by Sirajul
• 5,960 points
249 views