# Docker Networks

Docker Networking allows you to create a Network of Docker Containers managed by a master node called the manager.&#x20;

Containers inside the Docker Network can talk to each other by sharing packets of information.

The Docker network is a virtual network created by Docker to enable communication between Docker containers.&#x20;

If two containers are running on the same host they can communicate with each other without the need for ports to be exposed to the host machine.

<figure><img src="https://921544542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRQTWHUNVZ5tIxQJXclF%2Fuploads%2FuQ8I1I4KBoMYqYiZIC8O%2FDocker-network-1.webp?alt=media&#x26;token=4f8f520a-1b73-46d6-9bd3-609f32dc1d9e" alt=""><figcaption><p>Docker Network</p></figcaption></figure>

### Network Drivers

There are several default network drivers available in Docker and some can be installed with the help of plugins, Command to see the list of containers in Docker mentioned below.

1. Bridge

If you build a container without specifying the kind of driver, the container will only be created in the bridge network, which is the default network.

2. Host

Containers will not have any IP address they will be directly created in the system network which will remove isolation between the docker host and containers.

3. None

IP addresses won’t be assigned to containers. These containments are not accessible to us from the outside or from any other container.

4. Overlay

overlay network will enable the connection between multiple Docker demons and make different Docker swarm services communicate with each other.

5. IPvlan

Users have complete control over both IPv4 and IPv6 addressing by using the IPvlan driver.

6. MacVlan

macvlan driver makes it possible to assign MAC addresses to a container.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devops-3.gitbook.io/devops/docs/module-7-docker/docker-networks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
