Podman - GradedJestRisk/cicd-training GitHub Wiki

Podman

Healtheck

You can't wait on healthcheck, but the status is healthy in podman ps

Logs

https://betterstack.com/community/guides/scaling-docker/podman-logging/

Truncate

You cannot truncate in default logging driver, journalctl

Activate k8s logging driver in docker-compose.yaml

    logging:
      driver: "k8s-file"

Run

podman inspect  --format='{{.HostConfig.LogConfig.Path}}'  $CONTAINER_NAME

You get

/home/$USER/.local/share/containers/storage/overlay-containers/$CONTAINER_ID/userdata/ctr.log

You can then truncate

truncate --size=0 $FILE