concept container name in category kubernetes

appears as: container name
Kubernetes in Action

This is an excerpt from Manning's book Kubernetes in Action.

Specifying the container name when getting logs of a multi-container pod

If your pod includes multiple containers, you have to explicitly specify the container name by including the -c <container name> option when running kubectl logs. In your kubia-manual pod, you set the container’s name to kubia, so if additional containers exist in the pod, you’d have to get its logs like this: