turbot/docker_compliance

Query: docker_container_default_ulimit

Usage

powerpipe query docker_compliance.query.docker_container_default_ulimit

Steampipe Tables

SQL

select
id as resource,
case
when inspect -> 'HostConfig' ->> 'Ulimits' is null then 'ok'
else 'alarm'
end as status,
case
when inspect -> 'HostConfig' ->> 'Ulimits' is null then (names ->> 0) || ' default ulimit not overwritten.'
else (names ->> 0) || ' default ulimit overwritten.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_container;

Controls

The query is being used by the following controls: