---
title: The IPC namespace on the host should remain isolated from containers
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The IPC namespace on the host should
  remain isolated from containers
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# The IPC namespace on the host should remain isolated from containers
Classification:complianceFramework:cis-dockerControl:5.17 
## Description{% #description %}

Containers should use an IPC namespace of their own.

## Rationale{% #rationale %}

A container in the host IPC namespace shares the shared memory and semaphores of the host's processes, and can read or corrupt them.

## Audit{% #audit %}

Inspect the containers:

```bash
docker ps --quiet --all | xargs docker inspect --format '{{ .Name }}: IpcMode={{ .HostConfig.IpcMode }}'
```

Datadog passes the rule when a container's IPC mode is other than `host` and fails it otherwise.

## Remediation{% #remediation %}

Run the container without `--ipc=host`.

## Impact{% #impact %}

None.

## Default value{% #default-value %}

Containers have an IPC namespace of their own.

## References{% #references %}

1. [https://docs.docker.com/engine/containers/run/#ipc-settings—ipc](https://docs.docker.com/engine/containers/run/#ipc-settings---ipc)
1. [https://www.man7.org/linux/man-pages/man7/ipc_namespaces.7.html](https://www.man7.org/linux/man-pages/man7/ipc_namespaces.7.html)
