Docker Swarm installation Guide

Similar documents
Infoblox Kubernetes1.0.0 IPAM Plugin

Setting up Docker Datacenter on VMware Fusion

Tensorflow/SyntaxNet. Installation Guide

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

An introduction to Docker

MYR-2017 SimulATOR user manual

USING NGC WITH YOUR NVIDIA TITAN PC

$ wget V SOLUTIONS.tar.bz2 \ --user=lftraining --password=penguin2014

SAS Event Stream Processing for Edge Computing 4.3: Deployment Guide

Container-based virtualization: Docker

MRCP. Asterisk Modules. Administrator Guide. Powered by Universal Speech Solutions LLC

Applies to: SECURE WEB Version 1.3 and above

Docker Enterprise Edition 2.0 Platform Public Beta Install and Exercises Guide

Introduction to Containers

NetApp Jenkins Plugin Documentation

Ubuntu LTS Install Guide

To install Oracle Java 8, first we will add a repository to our package manager so our usual system update will download the Oracle JDK8 installer.

OSM Hackfest Installation and first use. Gerardo García (Telefónica)

AppDefense Plug-In. VMware AppDefense 2.0

Koha INSTALLATION PROCEDURE on Ubuntu Download ubuntu ISO File [Free download from Google]

swiftenv Documentation

OSM Hackfest Session 1 Installation and first use. Gianpietro Lavado (Whitestack)

Download and install MySQL server 8 in Windows. Step1: Download windows installer

ULTEO OPEN VIRTUAL DESKTOP DEBIAN WHEEZY (7.0) SUPPORT

CONTENTS 1. Introduction to Kubernetes 2. Key definitions and concepts 3. Kubernetes Concepts 4. Deploying Kubernetes Manually

STORING THE FUTURE. INFINIDAT Application Repository User Guide

PREPARING TO USE CONTAINERS

Installing MediaWiki using VirtualBox

CS-580K/480K Advanced Topics in Cloud Computing. Container III

DCCN Docker Swarm Cluster Documentation

Singularity CRI User Documentation

Guide Installation and User Guide - Linux

GitLab-CI and Docker Registry

Technical Manual(TM)

Data Analytics Studio Installation

Once the VM is started, the VirtualBox OS Manager window can be closed. But our Ubuntu VM is still running.

Virtuozzo Storage 2.3. Docker Integration Guide

MRCP. Yandex SR Plugin. Administrator Guide. Powered by Universal Speech Solutions LLC

MISP2 installation and configuration guide. Version 2.12

Using Juju with a Local Provider with KVM and LXC in Ubuntu LTS

Quick Start Guide to Compute Canada Cloud Service

Run containerized applications from pre-existing images stored in a centralized registry

Installing Cisco Nexus 1000V for KVM

Cloud-based Rapid Elastic MAnufacturing

IBM Planning Analytics Workspace Local Distributed Soufiane Azizi. IBM Planning Analytics

bistro Documentation Release dev Philippe Veber

Engineering Robust Server Software

Installation 1. DLM Installation. Date of Publish:

UI cases Documentation

Manual Linux Ubuntu Lts Server Install Webmin

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

VMware Identity Manager Connector Installation and Configuration (Legacy Mode)

Hortonworks DataFlow

Table of Contents. Configure and Manage Logging in to the Management Portal Verify and Trust Certificates

MeshCentral 2. Installer s Guide. Version July 31, 2018 Ylian Saint-Hilaire

Copyright

Using PCF Ops Manager to Deploy Hyperledger Fabric

Carbon Black QRadar App User Guide

Container Orchestration on Amazon Web Services. Arun

INSTALLATION ecodms Version (eleanor)

MT CANVUS 2.0 SERVER INSTALLATION MANUAL

KOHA UBUNTU In Compatible With. 1 P a g e

UDS Enterprise Preparing Templates Xubuntu NX * + UDS Actor

Edge Device Manager R15 Release Notes

Red Hat OpenShift Application Runtimes 1

CentOS 7 with MariaDB

Masternode Setup in VPS server

Linux Essentials Objectives Topics:

UDS Enterprise- Preparing Templates Xubuntu XRDP UDS Actor

How to install webmin on ubuntu (Precise) server

Red Hat Ceph Storage Release Notes

UDS Enterprise Free & Evaluation Edition. Lab UDS Enterprise + VMware vsphere + RDP/XRDP

SmartCash SmartNode Setup Guide V1.2 Windows 10 13/01/2018 By (Jazz) yoyomonkey Page 1

Implementing DPDK based Application Container Framework with SPP YASUFUMI OGAWA, NTT

UDS Enterprise Free & Evaluation Edition. Lab UDS Enterprise + VMware vsphere + RDP/XRDP

User-friendly Cross-platform Industry 4.0 Web Viewer Smartphone-App Free Hotline

Autopology Installation & Quick Start Guide

Metasploit. Installation Guide Release 4.4

Fundamentals of Windows Server 2008 Network and Applications Infrastructure

How to Install a DHCP Server in Ubuntu and Debian

What can you do with SQL Server on Linux?


Advanced Continuous Delivery Strategies for Containerized Applications Using DC/OS

Installing and Configuring vcenter Support Assistant

OpenNebula 4.12 Quickstart Ubuntu and KVM

CHEF MANUAL. Installation and Configuration. SGT, Inc. Innovation Technology Center

Relarium (RLM) Masternode Guide for VPS

Question: 2 Kubernetes changed the name of cluster members to "Nodes." What were they called before that? Choose the correct answer:

IBM Lotus Sametime Media Manager Cluster Deployment Walk-through Part VI- Bandwidth Manager IBM Corporation

Installer Window Service Manually Windows 7

Bitnami Pimcore for Huawei Enterprise Cloud

Singularity: container formats

MariaDB ColumnStore PySpark API Usage Documentation. Release d1ab30. MariaDB Corporation

Getting Started With Containers

How To Reinstall Grub In Windows 7 Without Losing Data And Programs

Red Hat Quay 2.9 Deploy Red Hat Quay - Basic

CROWDCOIN MASTERNODE SETUP COLD WALLET ON WINDOWS WITH LINUX VPS

How to force automatic removal of deleted files in nextcloud

CS 410/510: Web Security X1: Labs Setup WFP1, WFP2, and Kali VMs on Google Cloud

Introduction to Containers. Martin Čuma Center for High Performance Computing University of Utah

Transcription:

Docker Swarm installation Guide How to Install and Configure Docker Swarm on Ubuntu 16.04 Step1: update the necessary packages for ubuntu Step2: Install the below packages to ensure the apt work with https method, and that CA certificates are installed. Step 3: Add the GPG key for Docker repository on your system. Step4: Now, add the official Docker repository by running the following command in the terminal. echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" sudo tee -a /etc/apt/sources.list.d/docker.list Step 5: Update the apt database. Step 6: Make sure you are installing the docker from the official repository, not from the default Ubuntu 16.04 / 14.04 repo. Install Docker on Ubuntu Now, install the Docker using the following command. Step 7: Docker installation in command line

Step 8 : Docker starting and enable docker while boot. Step 9: Run a docker container to verify the Docker installation Step 10: Allow Non-root user to run Docker By default, you would require root privilege to run docker commands. To avoid this, I had been using docker commands with sudo. If you want to allow non-root users to run Docker containers, follow the below steps to give them privileges to run a Docker. Create a group called docker if it does not exist. Step 11 : Add a user to docker group. Step 12 : Log out and log back in. Now, you should now be able to run Docker commands without prefixing sudo.

Step 13: Firewall You would need to open following ports on the firewall for a swarm cluster to work properly. Restart the Docker engine after you have opened up the required ports as the firewall chain does affect the docker rules.

Create a Swarm Let s initiate a cluster creation using swarm init. Run the following command on your manager node advertise-addr option specifies the manager node to publish its address as 192.168.1.144 so that worker node can join the cluster. The above output has the token to add worker nodes to the cluster. View the current status of the swarm using the following command. You can list down the Docker nodes in the swarm with the following command. Adding Nodes to a Swarm Cluster

If you remember the output of swarm init command we ran on the manager, the output has the token to add nodes to the cluster. Just go back to that output and copy it, then paste that on the worker nodes. Node 1: Node 2: do same for second node also On Docker manager, run the docker node ls command to list down the worker nodes. Launching service in Docker Swarm mode Now, the Docker Swarm is up and running. Let s test a swarm by deploying service on it. Here, we will run a service called web with the image of httpd. Run the following command on the Docker manager. If you specify replicas <unit>, docker swarm will create unit number of tasks (or containers) of the same image for the specified service across the Docker worker nodes. To know which services are running on a cluster and how many replicas are there. To find on which node the service is running on by using the following command.

In our example, the service web is running on node2.itzgeek.local. Since we are running a web service, you can verify the service by pointing your browser to http://node1.dockerworker or http://192.168.1.123 You should get the following page. Scale up and Scale down service in the swarm In Docker swarm, we can scale up or down a service by creating additional instances. As you know, currently we have only one container for service web running on Docker manager. To test the scalability, let s scale the service web to five instance. Check where your instances are started. In some cases, we may likely to scale down.

High Availability or Container Self-Healing just stop the Docker service running on any one of the worker nodes. For Ex, I m stopping the Docker service on node1.workersnode ------------------------------- Done by somappa Srinivasan-----------------------------------------------