← Debugging144 / 640
hardkubectl

Retrieve logs from a specific container within a multi-container pod

command

kubectl logs POD_NAME -c CONTAINER_NAME

also accepted

kubectl logs POD_NAME -ckubectl logs POD_NAME --container CONTAINER_NAME

Test your recall — not just your reading.

Practice with interactive quiz →