#Local Scope Swarm Networking
Last active
June 4, 2017 19:48
-
-
Save mark-church/38f7a9c965a1be87ce615c3f5cd7e204 to your computer and use it in GitHub Desktop.
Docker 17.06 Local Scope Swarm Networking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download-stage.docker.com/linux/ubuntu $(lsb_release -cs) test" | |
sudo apt-get update | |
sudo apt-get install -y linux-generic-lts-wily netcat iproute2 apt-transport-https ca-certificates curl | |
sudo apt-get -y install docker-ce | |
sudo usermod -aG docker vagrant | |
sudo reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.define "node1" do |node1| | |
node1.vm.hostname = 'node1' | |
node1.vm.network "private_network", type: "dhcp" | |
node1.vm.provision :shell, path: "bootstrap.sh" | |
end | |
config.vm.define "node2" do |node2| | |
node2.vm.hostname = 'node2' | |
node2.vm.network "private_network", type: "dhcp" | |
node2.vm.provision :shell, path: "bootstrap.sh" | |
end | |
config.vm.define "node3" do |node3| | |
node3.vm.hostname = 'node3' | |
node3.vm.network "private_network", type: "dhcp" | |
node3.vm.provision :shell, path: "bootstrap.sh" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment