turbot/docker_compliance

Query: docker_container_healthcheck_instruction

Usage

powerpipe query docker_compliance.query.docker_container_healthcheck_instruction

Steampipe Tables

SQL

select
id as resource,
case
when config -> 'Healthcheck' is null then 'alarm'
else 'ok'
end as status,
(names ->> 0) || case
when config -> 'Healthcheck' is null then ' health check configured.'
else ' health check not configured.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_container;

Controls

The query is being used by the following controls: