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, 2019 in Docker by Namik
• 1,210 points
251 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, 2019 by Sirajul
• 55,300 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,970 points
455 views
+1 vote
0 answers

How can I map a docker location to my Jenkins workspace so that I can use the files in my Jenkins

Hey guys, I was trying to execute few ...READ MORE

Feb 25 in Docker by dineshkumar
• 130 points
1,028 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,910 points
383 views
+3 votes
14 answers
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
1,272 views
0 votes
2 answers

How do I force Docker for a clean build of an image ?

You could try this inorder to clean ...READ MORE

answered Aug 6, 2019 in Docker by Sirajul
• 55,300 points
4,600 views
0 votes
1 answer