Show the logs of one container in a pod
Prints the logs of a single container in a pod that runs several containers.
kubectl logs pod -c containerEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/kubectl-logs.md), licensed under CC BY 4.0.