---
title: The UTS namespace should not be shared with the host
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The UTS namespace should not be shared
  with the host
---

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

# The UTS namespace should not be shared with the host
Classification:complianceFramework:cis-dockerControl:5.21 
## Description{% #description %}

Containers should use a UTS namespace of their own.

## Rationale{% #rationale %}

A container in the host UTS namespace can change the hostname and domain name of the host.

## Audit{% #audit %}

Inspect the containers:

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

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

## Remediation{% #remediation %}

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

## Impact{% #impact %}

None.

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

Containers have a UTS namespace of their own.

## References{% #references %}

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