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

Solution Unverified - Updated -

Issue

  • 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 "192.168.1.1:443/mytest/hello- 
    world:xxxxxxx" not found
    imagestream.image.openshift.io/hello-world imported with errors
    
    ! error: Import failed (NotFound): dockerimage.image.openshift.io "192.168.1.1:443/mytest/hello-world:latest" not found
    
  • Trying to import an OCI image with oc import-image command fails with Import failed (NotFound).

Environment

  • 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