QuestionQ63

VerifiedContainer and Container Orchestration

In Kubernetes, you can use the kubectl exec command to work with a container. When executing this command against a multi-container Pod, you are advised to include the -c flag.

Which of the following explains why this flag is added?

Explanation

The -c (--container) flag specifies the target container for kubectl exec. For a Pod with more than one container, it selects the particular container in which the command will run.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!