> For the complete documentation index, see [llms.txt](https://lauradang.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lauradang.gitbook.io/notes/devops/docker/docker-networks.md).

# Docker Networks

## Default Networks

1. Bridge
   * Default network a container gets attached to
   * Private internal network created by Docker on the host
   * Each container in this network gets IP (usually in 172.17 series) and the containers can access each other

     * To access the containers from outside of the docker host, map ports of each container just like before

     ![](/files/-MJj4F-Pc7CPtpfh85HH)
   * `docker run Ubuntu`
2. None
   * `docker run Ubuntu --network=none`
3. Host
   * `docker run Ubuntu --network=host`
