Add the names flag for pod logs

Fixes containers#13261

Signed-off-by: Xueyuan Chen <X.Chen-47@student.tudelft.nl>
This commit is contained in:
Xueyuan Chen
2022-02-26 23:07:25 +01:00
committed by Xueyuan Chen
parent c39dffe83d
commit 40c6192e9e
4 changed files with 42 additions and 3 deletions

View File

@ -28,6 +28,10 @@ chance that the log file will be removed before `podman pod logs` reads the fina
Instead of providing the pod name or id, get logs of the last created pod. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
#### **--names**, **-n**
Output the container names instead of the container IDs in the log.
#### **--since**=*TIMESTAMP*
Show logs since TIMESTAMP. The --since option can be Unix timestamps, date formatted timestamps, or Go duration