Main Menu

Search

PODMAN: How to Tail Podman Container Logs?

Below steps can be used to tail podman container logs.

1. Check the running podman instance container ID

podman ps -a

Below is sample output

CONTAINER ID  IMAGE                                               COMMAND               CREATED      STATUS            PORTS                   NAMES
044ff210d1e3  container-registry.oracle.com/os/registry:v2.7.1.1  serve /etc/docker...  2 hours ago  Up 3 minutes ago  0.0.0.0:5000->5000/tcp  registry

2. Run podman logs on the podman container ID

podman logs -f <container id>

In this example.

podman logs -f 044ff210d1e3


Keywords:

tail tailing command commands containerization logging log 

No comments:

Post a Comment