1

When I try to add custom host for Rancher server it gives ERROR: CATTLE_URL cannot contain localhost or 127.0.0.1, please check the Host Registration URL.

bora.oren
  • 3,439
  • 3
  • 33
  • 31

1 Answers1

3

just don't use localhost or 127.0.0.1 :( for your rancher host registration url (in rancher server / admin / settings)

  1. find your real ip (for mac ifconfig ...)
  2. change host registration URL to founded IP (in rancher server / admin / settings menu)
  3. copy register script (in rancher server / infrastructure / hosts / add hosts / custom)
  4. run your script in CLI
bora.oren
  • 3,439
  • 3
  • 33
  • 31