DevOps Peach

Docker & Kubernetes · Module 03

Docker Networking

Pick the right network driver, publish ports safely, manage user-defined bridges and know when to use host, overlay, macvlan and none.

Practice interactively →

What you will learn

Lessons

  1. Network drivers and when to use them

    Docker ships bridge, host, none, overlay and macvlan; pick a driver by who the container needs to talk to.

  2. Bridge networks and port mapping

    Containers on a bridge have private IPs; publish ports with -p so the host and the outside world can reach them.

  3. Managing user-defined bridges

    Create networks, attach containers at creation or while running, detach them and remove networks in the right order.

  4. Host, overlay, macvlan and none

    Four special drivers — share the host network, span several hosts, plug straight into the LAN, or switch networking off.