Where are the podman logs of containers stored ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 8
  • Podman

Resolution

  • Podman logs of a container are stored in a file called ctr.log and the location of this file can be found from the inspect command as below,
podman inspect  --format='{{.HostConfig.LogConfig.Path}}'  <container-id>

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.