turbot/docker_compliance

Query: docker_container_host_ipc_namespace_shared

Usage

powerpipe query docker_compliance.query.docker_container_host_ipc_namespace_shared

Steampipe Tables

SQL

select
id as resource,
case
when inspect -> 'HostConfig' ->> 'IpcMode' = 'host' then 'alarm'
else 'ok'
end as status,
case
when inspect -> 'HostConfig' ->> 'IpcMode' = 'host' then (names ->> 0) || ' host IPC namespace shared.'
else (names ->> 0) || ' host IPC namespace not shared.'
end as reason,
_ctx ->> 'connection_name' as connection_name
from
docker_container;

Controls

The query is being used by the following controls: