turbot/docker_compliance

Query: docker_info_swarm_mode_enabled

Usage

powerpipe query docker_compliance.query.docker_info_swarm_mode_enabled

Steampipe Tables

SQL

select
id as resource,
case
when swarm ->> 'LocalNodeState' = 'inactive' then 'ok'
else 'alarm'
end as status,
case
when swarm ->> 'LocalNodeState' = 'inactive' then name || ' swarm mode disabled.'
else name || ' swarm mode enabled.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_info;

Controls

The query is being used by the following controls: