Skip to content

Instantly share code, notes, and snippets.

@oliveira-andre
Last active September 30, 2020 01:35
Show Gist options
  • Select an option

  • Save oliveira-andre/dbbbed339898a4824f466e0c13cd8efc to your computer and use it in GitHub Desktop.

Select an option

Save oliveira-andre/dbbbed339898a4824f466e0c13cd8efc to your computer and use it in GitHub Desktop.
using docker to up rancher

Using docker to up rancher

ssh on machine

allow udp to ports 500 and 4500

sudo ufw allow 500/udp
sudo ufw allow 4500/udp

install docker

sudo apt-get install docker.io

turning up the rancher server

sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable

save on current server -> create new host -> copy the script and past on terminal (something like this)

sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.11 http://1.2.3.4:8080/v1/scripts/37DA0222034C93A59F4D:1577750400000:3zfCbPvLb3qbQVPbVMFRXuRuVYk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment