oc registry login fails due to missing kubeconfig in OpenShift 4.5 while creating mirror registry

Solution Verified - Updated -

Issue

  • The oc registry login command is failing during setup of mirror registry:
$ oc registry login --to ./nowhere.json --registry nowhere:5000 --auth-basic=nothing:nothing
error: Missing or incomplete configuration info.  Please point to an existing, complete config file:


  1. Via the command-line flag --kubeconfig
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

Environment

  • Red Hat OpenShift Container Platform
    • 4.5
  • Disconnected or restricted installation

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content