oc import-image command fails with "Import failed (NotFound)" error

Solution Unverified - Updated -


  • The import of an image using the oc import-image command fails with error Import failed (NotFound) although the image exists and can be pulled:

    error: tag xxxxxxx failed: dockerimage.image.openshift.io " 
    world:xxxxxxx" not found
    imagestream.image.openshift.io/hello-world imported with errors
    ! error: Import failed (NotFound): dockerimage.image.openshift.io "" not found
  • Trying to import an OCI image with oc import-image command fails with Import failed (NotFound).


  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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