turbot/docker_compliance

Query: docker_container_pid_cgroup_limit_used

Usage

powerpipe query docker_compliance.query.docker_container_pid_cgroup_limit_used

Steampipe Tables

SQL

select
id as resource,
case
when inspect -> 'HostConfig' ->> 'PidsLimit' in ('0','-1') then 'alarm'
else 'ok'
end as status,
case
when inspect -> 'HostConfig' ->> 'PidsLimit' in ('0','-1') then (names ->> 0) || ' PIDs cgroup limit unused.'
else (names ->> 0) || ' PIDs cgroup limit used.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_container;

Controls

The query is being used by the following controls: