What's the difference between 'oc tag' and 'oc import-image'?

Solution Unverified - Updated -

Issue

After reviewing the OpenShift documentation, I am still confused on when to use oc tag and when to use oc import-image.

What's the difference between oc tag and oc import-image and when should I use either of the commands to manage ImageStreams?

Environment

  • OpenShift Container Platform
    • 4.X

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