---
title: Containers should use a non-default bridge network
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Containers should use a non-default
  bridge network
---

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

# Containers should use a non-default bridge network
Classification:complianceFramework:cis-dockerControl:5.30 
## Description{% #description %}

Containers should use a network other than the default bridge `docker0`.

## Rationale{% #rationale %}

Containers on the default bridge share one network where they can reach each other. A user-defined network per application isolates them and gives them name resolution.

## Audit{% #audit %}

Find the containers on the networks of the `docker0` bridge:

```bash
docker network ls --quiet | xargs docker network inspect --format '{{ .Name }}: {{ .Options }}'
docker ps --quiet --all | xargs docker inspect --format '{{ .Name }}: {{ .NetworkSettings.Networks }}'
```

Datadog fails the rule when a container joins the default bridge network or a network on the `docker0` bridge, and passes it otherwise.

## Remediation{% #remediation %}

Create a network for the application and run its containers on it:

```bash
docker network create app
docker run --network app <image>
```

## Impact{% #impact %}

None.

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

Containers join the default bridge network.

## References{% #references %}

1. [https://docs.docker.com/network/bridge/](https://docs.docker.com/network/bridge/)
