Home Explore Blog Models CI



docker

content/manuals/engine/network/drivers/none.md
7a5a03af5c64f4288dab7f5ecec70fd2ea8a81dab378a58100000003000005a1
---
title: None network driver
description: How to isolate the networking stack of a container using the none driver
keywords: network, none, standalone
aliases:
- /network/none/
- /network/drivers/none/
---

If you want to completely isolate the networking stack of a container, you can
use the `--network none` flag when starting the container. Within the container,
only the loopback device is created.

The following example shows the output of `ip link show` in an `alpine`
container using the `none` network driver.

```console
$ docker run --rm --network none alpine:latest ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
```

No IPv6 loopback address is configured for containers using the `none` driver.

```console
$ docker run --rm --network none --name no-net-alpine alpine:latest ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
```

## Next steps

- Go through the [host networking tutorial](/manuals/engine/network/tutorials/host.md)
- Learn about [networking from the container's point of view](../_index.md)
- Learn about [bridge networks](bridge.md)
- Learn about [overlay networks](overlay.md)
- Learn about [Macvlan networks](macvlan.md)

Chunks
41b8f8c8 (1st chunk of `content/manuals/engine/network/drivers/none.md`)
Title: Using the 'none' Network Driver in Docker
Summary
The `--network none` flag isolates a container's networking stack, creating only a loopback device within the container. This means no external network access. The example shows the output of `ip link show` in an Alpine container using the `none` network driver.