Rancher needs to be configured to use the private registry in order to provision any Rancher launched Kubernetes clusters or Rancher tools.

  1. Log into Rancher and configure the default admin password.

  2. Go into the Settings view.

    Settings

  3. Look for the setting called system-default-registry and choose Edit.

    Edit

  4. Change the value to your registry (e.g. registry.yourdomain.com:port). Do not prefix the registry with http:// or https://.

    Save

Note: If you want to configure the setting when starting the rancher/rancher container, you can use the environment variable CATTLE_SYSTEM_DEFAULT_REGISTRY.