1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [bridge](<https://delaparra-services.nl/knowledge-hub/bridge>)

  

Category: Docker 

# bridge

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is bridge?

 

bridge: The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT. Bridge is Docker's default network driver. Each container gets a private IP address on a virtual network inside the host, and reaches the internet through network address translation. Containers on the same user-defined bridge network can reach each other by container name. Your app can connect to ` mysql:3306 ` instead of an IP address. Docker Compose creates such a network for every project automatically.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about bridge

  

### What should you keep in mind with bridge?

 

The built-in default bridge does not offer name resolution, which is why ` docker network create ` and Compose networks are the better choice. To make a service reachable from outside the host, publish its port with ` -p `. Only publish what needs to be public. A database usually only needs to be reachable from the app container, not from the whole internet.

    

### What does an example of bridge look like?

 

```
docker network create --driver bridge appnet docker run --network appnet myapp:1.0
```

 

## At a glance

   CategoryDocker Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Docker terms

 

- [ARG](<https://delaparra-services.nl/knowledge-hub/arg>) 
- [base image](<https://delaparra-services.nl/knowledge-hub/base-image>) 
- [bind mount](<https://delaparra-services.nl/knowledge-hub/bind-mount>) 
- [build](<https://delaparra-services.nl/knowledge-hub/build>) 
- [CMD](<https://delaparra-services.nl/knowledge-hub/cmd>) 
- [container](<https://delaparra-services.nl/knowledge-hub/container>)

 

[All terms starting with B](<https://delaparra-services.nl/knowledge-hub#letter-b>)

 

## Skills

 

- ### Docker Project Foundations

 

Use this skill when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a database or cache dependency, or running services without host-level installs. Covers Dockerfile, compose.yaml, and .dockerignore creation with Docker best practices.

 [View skill](<https://delaparra-services.nl/skills/docker-project-foundations>) [Download zip](<https://delaparra-services.nl/skills/docker-project-foundations/download>) 
- ### Docker Compose Patterns

 

Use this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.

 [View skill](<https://delaparra-services.nl/skills/docker-compose-patterns>) [Download zip](<https://delaparra-services.nl/skills/docker-compose-patterns/download>) 
- ### Docker Build Strategies

 

Use this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.

 [View skill](<https://delaparra-services.nl/skills/docker-build-strategies>) [Download zip](<https://delaparra-services.nl/skills/docker-build-strategies/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/bridge/skills.zip>)

 

## Manuals

 

- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>) 
- [Deploying a Laravel app](<https://delaparra-services.nl/manuals/je-laravel-app-online-zetten>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/bridge)
