Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

4.8.2. logs

检索特定构建、部署或 Pod 的日志输出。此命令适用于构建、构建配置、部署配置和容器集。

$ oc logs -f <pod> -c <container_name>