QuestionQ192Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionIf a Pod has multiple containers, how can you view logs from one specific container?Akubectl logs --describeBkubectl logs --containerCkubectl logs --applicationDkubectl logs --dockerShow AnswerAnswerExplanationkubectl logs supports the --container flag (short form: -c) to select the container whose logs should be displayed, for example: kubectl logs POD_NAME --container CONTAINER_NAME.Learn moreLogging Architecture | Kuberneteskubectl logs command reference | KubernetesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion