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,105 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
• 59,230 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,060 points
3,122 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, 2020 in Docker by dineshkumar
• 130 points
4,928 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
• 7,340 points
1,491 views
+15 votes
19 answers

How can I run a ‘docker exec’ command inside a docker container?

you can run any command in a ...READ MORE

answered Dec 10, 2018 in Docker by Pramiti
1,229,501 views
+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
3,904 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
• 59,230 points
10,679 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP