---
title: Mount propagation mode should always be set to a non-shared option
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Mount propagation mode should always be
  set to a non-shared option
---

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

# Mount propagation mode should always be set to a non-shared option
Classification:complianceFramework:cis-dockerControl:5.20 
## Description{% #description %}

Volumes should mount with private or slave propagation.

## Rationale{% #rationale %}

With shared propagation, the mounts a container makes inside a volume appear on the host and in other containers.

## Audit{% #audit %}

Inspect the containers:

```bash
docker ps --quiet --all | xargs docker inspect --format '{{ .Name }}: Propagation={{range $mnt := .Mounts}} {{json $mnt.Propagation}} {{end}}'
```

Datadog passes the rule when no mount of a container uses `shared` or `rshared` propagation, and fails it otherwise.

## Remediation{% #remediation %}

Mount the volumes with private propagation, the default, or `slave` where the container must see the mounts of the host.

## Impact{% #impact %}

None.

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

Mounts use `rprivate` propagation.

## References{% #references %}

1. [https://docs.docker.com/engine/storage/bind-mounts/#configure-bind-propagation](https://docs.docker.com/engine/storage/bind-mounts/#configure-bind-propagation)
1. [https://docs.docker.com/engine/containers/run/#volume-shared-filesystems](https://docs.docker.com/engine/containers/run/#volume-shared-filesystems)
