turbot/docker_compliance

Query: docker_info_container_sprawl_avoided

Usage

powerpipe query docker_compliance.query.docker_info_container_sprawl_avoided

Steampipe Tables

SQL

select
id as resource,
case
when containers_stopped > containers_running then 'alarm'
else 'ok'
end as status,
case
when containers_stopped > containers_running then name || ' suffering from container sprawl.'
else name || ' suffering from container sprawl.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_info;

Controls

The query is being used by the following controls: