0Pricing
Docker & DevOps Fundamentals · Lesson

Custom Bridge Networks and Service Discovery

Create user-defined bridge networks so containers can find and talk to each other by name, and learn how Docker handles DNS-based service discovery.

Why a Custom Network?

The default bridge network works, but containers on it can only reach each other by IP address. A user-defined bridge network adds automatic DNS-based service discovery so containers reach each other by name.

  • Better isolation between app groups
  • Built-in name resolution
  • Containers can be attached and detached on the fly

Listing Existing Networks

Docker ships with three default networks. Inspect them with docker network ls before creating your own.

docker network ls

All lessons in this course

  1. Container Networking Basics
  2. Docker Volumes for Persistence
  3. Bind Mounts and tmpfs Mounts
  4. Custom Bridge Networks and Service Discovery
← Back to Docker & DevOps Fundamentals