---
title: Processes in containers should have isolated Process ID (PID) namespaces
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Processes in containers should have
  isolated Process ID (PID) namespaces
---

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

# Processes in containers should have isolated Process ID (PID) namespaces
Classification:complianceFramework:cis-dockerControl:5.16 
## Description{% #description %}

Containers should use a PID namespace of their own.

## Rationale{% #rationale %}

A container in the host PID namespace sees every process of the host and, as root, can signal or trace them.

## Audit{% #audit %}

Inspect the containers:

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

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

## Remediation{% #remediation %}

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

## Impact{% #impact %}

None.

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

Containers have a PID namespace of their own.

## References{% #references %}

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