From Fedora Project Wiki
Description
This test verifies that conmon-v3 sends container standard output and standard error to the system journal, and that journalctl can retrieve the messages using the container's full ID.
How to test
- Run a container using journald logging:
podman run --name conmon-journal --log-driver=journald registry.fedoraproject.org/fedora:latest sh -c 'echo STDOUT_OK; echo STDERR_OK >&2'
- Save its full container ID:
id=$(podman inspect --format '{{.Id}}' conmon-journal) echo "$id" - Read the container's messages from the journal:
journalctl --sync journalctl --no-pager -o cat CONTAINER_ID_FULL="$id"
- Clean up:
podman rm conmon-journal
Expected Results
- The container prints
STDOUT_OKandSTDERR_OK. - Inspect returns the full container ID.
- The journalctl command displays both messages after the container exits.
- No particular ordering between the two messages is required.
