Installing Docker and Running Rancher
- Log into the Ubuntu server
- Run the following commands
# install docker
curl https://releases.rancher.com/install-docker/19.03.sh | sh
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
# verify docker is installed and working
docker version
# run rancher container
docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /opt/rancher:/var/lib/rancher --privileged rancher/rancher:latest - Open a web browser and navigate to the https://DNSorIP
- Accept the certificate warning
- When Rancher loads, enter an admin password and re-type to confirm
- Select the I'm only going to use the cluster Rancher was installed on option
- Click Continue
- Welcome to Rancher
- Congratulations, you now have a web based UI to deploy and manage docker containers
https://rancher.com/docs/rancher/v2.x/en/best-practices/v2.5/rancher-server/deployment-types/