# Omera install #2. Rancher install ## 2. Rancher install - start rancher mkdir /home/ubuntu/data sudo chmod 777 /home/ubuntu/data ![image](https://hackmd.io/_uploads/H19aq6dyC.png) cd /apps cat cat runrancher.sh ``` docker run -d --restart=unless-stopped \ -p 80:80 -p 443:443 -p 30000-31999:30000-31999 \ --privileged \ -v /home/ubuntu/data:/var/lib/rancher \ -d \ rancher/rancher:v2.7.6 ``` ./runrancher.sh ![image](https://hackmd.io/_uploads/rJuqquu1C.png) ![image](https://hackmd.io/_uploads/rJxZoddy0.png) docker exec -it <CONTAINER ID> bash ``` ``` ![image](https://hackmd.io/_uploads/B1cmjuu1C.png) #### Advanced ====> #### Proceed to 10.10.30.45 (unsafe) ![image](https://hackmd.io/_uploads/ry1PI0dyR.png) you will get the password ``` It looks like this is your first time visiting Rancher; if you pre-set your own bootstrap password, enter it here. Otherwise a random one has been generated for you. To find it: For a "docker run" installation: Find your container ID with docker ps, then run: docker logs container-id 2>&1 | grep "Bootstrap Password:" For a Helm installation, run: kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{"\n"}}' ``` copy and input change to you own password login again with your new password