Which command includes the -c flag to specify the container name in the image change trigger example?

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 includes the -c flag to specify the container name in the image change trigger example?

Explanation:
When you set up an image change trigger for a DeploymentConfig with multiple containers, you must tell OpenShift which container to update. The -c flag specifies the container name, so the trigger applies to that specific container’s image only. In the example, -c phpapp targets the container named phpapp and updates its image to phpns/myphp:latest when a new image is available. The other options either manage different resources or don’t designate a container, so they aren’t the correct way to apply an image change trigger to a particular container.

When you set up an image change trigger for a DeploymentConfig with multiple containers, you must tell OpenShift which container to update. The -c flag specifies the container name, so the trigger applies to that specific container’s image only. In the example, -c phpapp targets the container named phpapp and updates its image to phpns/myphp:latest when a new image is available. The other options either manage different resources or don’t designate a container, so they aren’t the correct way to apply an image change trigger to a particular container.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy