https://rancher.com/ logo
Title
g

gentle-secretary-45787

07/20/2022, 5:08 PM
I searched but not found... I'm trying to configure a local rancher server/agent but I'm stuck in step that create the agent... In docker logs of the agent container, the logs are only "time="2022-07-20T17:00:16Z" level=fatal msg="Failed to find container id:\n0::/\n"" Docker version: 20.10.17 Rancher server version: Latest
t

tall-school-18125

07/20/2022, 7:08 PM
Installing a Rancher agent isn't something you should have to do manually when installing Rancher. You only have to set up a Rancher agent when you are connecting a downstream Kubernetes cluster to Rancher
g

gentle-secretary-45787

07/20/2022, 7:52 PM
Hi @tall-school-18125, thanks for the answer... But I don't understand... I followed a simple tutorial where I run the rancher server in a docker container, and in the following, accessing the rancher ui, I copy the command for create a host... Am I doing somethign wrong?
t

tall-school-18125

07/20/2022, 7:54 PM
can you share the link to the tutorial?
or a screenshot?
g

gentle-secretary-45787

07/20/2022, 7:58 PM
It's in portuguese, but it's simple to understand: https://onebitcode.com/o-que-e-e-como-funciona-o-rancher/
t

tall-school-18125

07/20/2022, 8:05 PM
Google translate has made it English for me, so that works. I see two things: • The tutorial is for an extremely old Rancher version that should not be used anymore • In the latest version of Rancher, you can create a custom cluster similar to that tutorial, but the prerequisite is that you need a linux server that fulfills all of the installation requirements for downstream clusters https://rancher.com/docs/rancher/v2.6/en/installation/requirements/ports/#downstream-kubernetes-cluster-nodes • The most up-to date docs about provisioning clusters on existing nodes is here https://rancher.com/docs/rancher/v2.6/en/cluster-provisioning/rke-clusters/custom-nodes/
s

square-farmer-68052

07/20/2022, 8:28 PM
Also please note that running rancher in docker is only for development/demo purposes, it should be installed on a k8s cluster via helm for anything the least bit serious see: https://rancher.com/docs/rancher/v2.6/en/installation/#docker-install
This document is up to date and should get you Rancher running on k8s pretty easy: https://rancher.com/docs/rancher/v2.6/en/installation/install-rancher-on-k8s/