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
• 1,200 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 by Sirajul
• 25,180 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,880 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
• 6,890 points
+1 vote
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
• 40,420 points
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
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 in Docker by Sirajul
• 25,180 points
0 votes
1 answer