Install Rancher as a single node and kubernetes


Install rancher ( single node)

Docker Installation on ubuntu

docker run -d --restart=unless-stopped -p 8081:80 -p 8443:443 rancher/rancher:latest


persistent ( add volume )





Install on ubuntu ( AWS or Azure ) 
install docker
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install docker -y
sudo apt-get install docker-compose -y
docker --version
docker-compose version

Allow user to run docker:
Create the docker group:  $ sudo groupadd docker
Add your user to the docker group:  $ sudo usermod -aG docker $USER
>> Logout and log back in

#Install rancher ( single node)
sudo docker run -d --restart=unless-stopped   -p 8081:80 -p 8443:443   rancher/rancher:latest