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,230 points

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:

Hope this helps!

answered Jul 5, 2019 by Sirajul
• 59,090 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
• 7,040 points
+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, 2020 in Docker by dineshkumar
• 130 points
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
• 7,320 points
+8 votes
19 answers
+2 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
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
• 59,090 points
0 votes
1 answer