Rancher needs to be configured to use the private registry in order to provision any Rancher launched Kubernetes clusters or Rancher tools.
Note: If you want to configure Rancher for your private registry when when starting the rancher/rancher container, you can use the environment variable
CATTLE_SYSTEM_DEFAULT_REGISTRY.
-
Log into Rancher and configure the default admin password.
-
Go into the Settings view.

-
Look for the setting called
system-default-registryand choose Edit.
-
Change the value to your registry (e.g.
registry.yourdomain.com:port). Do not prefix the registry withhttp://orhttps://.