11.6. Checking inventory health
You can manually check the system health of the container images and events that are running inside the container.
Prerequisites
- You pushed the container image to an accessible repository.
-
The
container-toolsmeta-package is installed.
Procedure
Display the health check status of a container.
By using the
podman inspect: orpodman pscommands.$ podman inspect --format='{{json .State.Health.Status}}' <container> healthyBy using the
podman pscommands.$ podman healthcheck run <container> healthy
Monitor and print events that occur in Podman by using the
podman eventscommand. Each event includes a timestamp, a type, a status, a name, if applicable, and an image, if applicable.$ now=$(date --iso-8601=seconds) $ podman events --since=now --stream=false healthy