Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashkathe/docker-swarm-with-vagrant
This repository holds a Vagrant File to install a Ubuntu server which has docker pre-installed in it. Also documentation to start a docker swarm locally.
https://github.com/yashkathe/docker-swarm-with-vagrant
clustering docke-swarm docke-swarm-with-varant docker docker-swarm-cluster vagrant vagrant-ubuntu vagrantfile
Last synced: 2 days ago
JSON representation
This repository holds a Vagrant File to install a Ubuntu server which has docker pre-installed in it. Also documentation to start a docker swarm locally.
- Host: GitHub
- URL: https://github.com/yashkathe/docker-swarm-with-vagrant
- Owner: yashkathe
- Created: 2022-11-09T16:29:43.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-11T13:33:25.000Z (about 2 years ago)
- Last Synced: 2024-11-06T13:53:31.147Z (about 2 months ago)
- Topics: clustering, docke-swarm, docke-swarm-with-varant, docker, docker-swarm-cluster, vagrant, vagrant-ubuntu, vagrantfile
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Steps to deploy a Docker Swarm locally
# Index
#### 1. [Install Virtual Machines](#installvm)
#### 2. [Create a Docker Swarm](#createSwarm)Here I have created three virtual machines using vagrant.
The folder structure is as follows:![folderStructure](assets/1.png)
_I will refer to folder now as a node_
Now inside a node create a VagrantFile and copy paste the contents from this [file](https://raw.githubusercontent.com/yashkathe/Docker-Swarm-with-Vagrant/master/Vagrantfile).```bash
touch Vagrantfile
```Now execute the following commands to start a node.
```bash
vagrant up
vagrant up
vagrant ssh
```Update and Upgrade your node after you have successfully SSHed into it
```bash
sudo apt update && sudo apt upgrade
```Check if docker is installed
```bash
docker --version
```![dockerInstalled](assets/2.png)
Also change the name of the node by editing the following file so that they will be distinguishable from each other.
```bash
sudo vim /etc/hostname
```
Now reboot and ssh back in._Repeat the steps for other two nodes_