- Home
- All questions
- Question 442
CKA study material · question 442 of 1000
How are an init container's logs read?
Show the answer
Answer: B. kubectl logs <pod> -c <init-container>
An init container is not the default container, so its name must be given with -c.
Source: Debug Init Containers (Kubernetes) — Getting details about Init Containers