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

  1. 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'
    
  2. Save its full container ID:
    id=$(podman inspect --format '{{.Id}}' conmon-journal)
    echo "$id"
    
  3. Read the container's messages from the journal:
    journalctl --sync
    journalctl --no-pager -o cat CONTAINER_ID_FULL="$id"
    
  4. Clean up:
    podman rm conmon-journal
    

Expected Results

  1. The container prints STDOUT_OK and STDERR_OK.
  2. Inspect returns the full container ID.
  3. The journalctl command displays both messages after the container exits.
  4. No particular ordering between the two messages is required.