Which command imports an external container image into an OpenShift ImageStream by specifying the image location and confirming the import?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command imports an external container image into an OpenShift ImageStream by specifying the image location and confirming the import?

Explanation:
Importing an external image into an ImageStream is done by telling OpenShift where the image lives and then executing the import. The correct command uses the import operation directly: oc import-image <imagestream> --from <registry>/<image> --confirm. Here, the ImageStream name identifies where you want to store or reference the image, --from points to the external image location, and --confirm actually performs the import so the ImageStream is updated to reference that external image. This makes the image available to builds and deployments via the ImageStream. Other approaches either describe a multi-step process or use a different operation; for example, tagging can move or reference images in registries but does not perform the same import into an ImageStream, and claiming that external images cannot be imported is incorrect because OpenShift provides this workflow.

Importing an external image into an ImageStream is done by telling OpenShift where the image lives and then executing the import. The correct command uses the import operation directly: oc import-image --from / --confirm. Here, the ImageStream name identifies where you want to store or reference the image, --from points to the external image location, and --confirm actually performs the import so the ImageStream is updated to reference that external image. This makes the image available to builds and deployments via the ImageStream.

Other approaches either describe a multi-step process or use a different operation; for example, tagging can move or reference images in registries but does not perform the same import into an ImageStream, and claiming that external images cannot be imported is incorrect because OpenShift provides this workflow.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy