To import an image into an image stream named myis from a private registry and confirm the import, which command is appropriate?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

To import an image into an image stream named myis from a private registry and confirm the import, which command is appropriate?

Explanation:
Importing an image into an OpenShift ImageStream is done with an import command that explicitly pairs the target stream with the source image and then executes the import. The essential pieces are the name of the image stream you want to populate, the source image in the registry, and the flag that actually performs the import. In this case, you want to populate the image stream named as myis from the image located at registry.example.com/myorg/myimage, and you want the import to run immediately. The appropriate command uses --from to specify the exact source image and --confirm to carry out the import right away. Additional flags like --reference-policy local alter how the imported image is referenced inside the stream, but they aren’t required for a basic import and aren’t needed here. Using the correct source image and the required confirm flag ensures the import happens into the desired image stream, which is why this option is the best match.

Importing an image into an OpenShift ImageStream is done with an import command that explicitly pairs the target stream with the source image and then executes the import. The essential pieces are the name of the image stream you want to populate, the source image in the registry, and the flag that actually performs the import. In this case, you want to populate the image stream named as myis from the image located at registry.example.com/myorg/myimage, and you want the import to run immediately. The appropriate command uses --from to specify the exact source image and --confirm to carry out the import right away. Additional flags like --reference-policy local alter how the imported image is referenced inside the stream, but they aren’t required for a basic import and aren’t needed here. Using the correct source image and the required confirm flag ensures the import happens into the desired image stream, which is why this option is the best match.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy