Setup Docker Swarm Cluster on Ubuntu 20.04 in Azure with GlusterFS as Replicated Storage - Part 1

TUNEIT
TUNEIT
1.5 هزار بار بازدید - 4 سال پیش - Learn how to setup or
Learn how to setup or install Docker Swarm Cluster in Azure Cloud VPS Ubuntu Servers. The process is same for other cloud providers, like Digital Ocean or AWS or Google Cloud. We need to create Ubuntu Server 20.04 LTS VM's for the purpose.

This is the first part of Docker Swarm Cluster

#DockerSwarm

Useful referral links
=========================================
Digital ocean - https://m.do.co/c/4fc5bb284d41

Rasberry Pi - https://uk.pi-supply.com/?ref=cjv78_u...

Create beautiful social media graphics - https://www.canva.com/join/wqj-rnt-rtx

Please find the link below for second part.
=========================================
Install GlusterFS in Docker Swarm - Install GlusterFS as Replicated Stora...

Full blog post here: https://rb.gy/lbcj6e

Deploy Traefik v2.0 in Docker Swarm as a reverse proxy
=========================================
Deploy Traefik v2.0 - Cloud Native Ed...

Full blog post for deploying Traefik in Docker Swarm - https://rb.gy/ayr4f9

If you ever think of setting up of your own IT Infrastructure to host required applications, i.e, Website (Corporate or Blog), File Server, Mail Server, Team Collaboration Software, ERP, CRM, Forums, DB Server to host databases for all the applications and many more with low cost and high availability.

In olden days, it is very difficult because we need to host our infrastructure on Physical Devices and if some thing goes wrong, it could take days to recover the applications running on it. There is a possibility of data loss if we don’t have data redundancy. Also it is very expensive and time consuming process.

Now a days, I call them as Golden Days or Cloud Era, we can setup / create / install our own IT Infrastructure with in Hours with Virtual Machines in Public Cloud or Private Cloud Environment. We can use Raspberry Pi to host Docker Swarm at home.

Here find the steps below to Install Docker and Docker Compose

Uninstall old versions
=========================================
Older versions of Docker were called docker, docker.io, or docker-engine. If these are installed, uninstall them:

sudo apt-get remove docker docker-engine docker.io containerd runc

It’s OK if apt-get reports that none of these packages are installed.

The contents of /var/lib/docker/, including images, containers, volumes, and networks, are preserved. The Docker Engine package is now called docker-ce.

Install Docker per-requisites
=========================================
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Add Docker’s official GPG Key
=========================================
curl -fsSL https://download.docker.com/linux/ubu... | sudo apt-key add -

Set up Docker stable repository
=========================================
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Install Docker EC Engine
=========================================
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io

Add user to Docker group
=========================================
sudo usermod -aG docker $USER

Configure Docker to start on boot
=========================================
sudo systemctl enable docker

Restart the Docker daemon
=========================================
sudo service docker restart

Install Docker Compose
=========================================
sudo curl -L "https://github.com/docker/compose/rel... -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Note: Replace 1.26.2 with the latest release from, https://github.com/docker/compose/rel...

Apply executable permissions to the binary
=========================================
sudo chmod +x /usr/local/bin/docker-compose

Now Docker and Docker Compose installed on the 2 VM's.

In next video, I will install GlusterFS as replicated storage volume for high availability

=========================================
Remember to leave a comment or like on this video and subscribe if you want to see more!
=========================================
4 سال پیش در تاریخ 1399/05/19 منتشر شده است.
1,573 بـار بازدید شده
... بیشتر