Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 32 additions & 23 deletions content/manuals/engine/network/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Networking overview
title: Networking
linkTitle: Networking
weight: 30
description: Learn how networking works from the container's point of view
Expand Down Expand Up @@ -29,28 +29,37 @@ routing table, DNS services, and other networking details.
This page describes networking from the point of view of the container,
and the concepts around container networking.

When Docker Engine on Linux starts for the first time, it has a single
built-in network called the "default bridge" network. When you run a
container without the `--network` option, it is connected to the default
bridge.

Containers attached to the default bridge have access to network services
outside the Docker host. They use "masquerading" which means, if the
Docker host has Internet access, no additional configuration is needed
for the container to have Internet access.

For example, to run a container on the default bridge network, and have
it ping an Internet host:

```console
$ docker run --rm -ti busybox ping -c1 docker.com
PING docker.com (23.185.0.4): 56 data bytes
64 bytes from 23.185.0.4: seq=0 ttl=62 time=6.564 ms

--- docker.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 6.564/6.564/6.564 ms
```
## Default network

When Docker Engine starts for the first time, it uses a single
built-in network called the default bridge network. This means that when
you start container without specifying `--network` option, the container
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar error: Missing articles

The sentence is missing two articles:

  • "you start container" → "you start a container"
  • "without specifying --network option" → "without specifying the --network option"

Current:

you start container without specifying --network option, the container

Should be:

you start a container without specifying the --network option, the container

Per STYLE.md, use articles for clarity and grammatical correctness.

defaults to the `bridge` value. When your Docker host (the virtual or physical
machine running Docker) has Internet access, no additional configuration is
needed for the container to have Internet access.
Comment on lines +34 to +39
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The engine doesn't really "use" a network; the default bridge network is created and containers you run automatically attach to it.

This paragraph combines two unrelated things: the fact that there is a default network, and the fact that containers can access the internet. (I am not sure why it is/was written as if this is unique to the default bridge network; it's true for any bridge network.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this:

When Docker Engine starts for the first time, the default bridge network is created and containers attach to it automatically. The Docker bridge network is an isolated network for containers to communicate
with each other. Containers
default to the bridge value if no other network_mode option is specified.

I've omitted/removed the sentence about internet access since i think it's redundant, but can add it back if you think it's necessary to say~ :) what do you think?


The Docker bridge network is an isolated network for containers to communicate
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The Docker bridge network is an isolated network for containers to communicate

with each other.

* By default, the bridge network gives your containers
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvdksn is this content still good to keep / is accurate?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minus the 'by default' sentence that ive removed)

access to external networks through masquerading, or borrowing your Docker
host's public IP address to make requests to and receive replies from the Internet.
* While your containers communicate with each other on the bridge network, devices
with access to your external network only see communication coming from and
going to your containers with your Docker host's IP address.

If you want to test the bridge network, you can send a ping request
from an active container and wait for the reply. For example:

```console
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: Code block indentation error

The code block is indented with 4 spaces before the triple backticks:

    ```console
    $ docker run --rm -ti busybox ping -c1 docker.com
    ...
    ```

This is incorrect Markdown formatting that will likely break rendering. Code blocks should start at column 0 (not indented) unless they're inside a list item.

Fix: Remove the 4-space indentation:

```console
$ docker run --rm -ti busybox ping -c1 docker.com
...

<!-- cagent-review -->

$ docker run --rm -ti busybox ping -c1 docker.com
PING docker.com (23.185.0.4): 56 data bytes
64 bytes from 23.185.0.4: seq=0 ttl=62 time=6.564 ms

--- docker.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 6.564/6.564/6.564 ms
```

## User-defined networks

Expand Down