Ravindra BagaleCourses & study guides मराठी

Chapter 51: Docker Networking: Port Publishing, Bridge, Host, None, Overlay, Macvlan, DNS and Every Network Command

Today we see how containers talk to each other, and how an outside user reaches a container. Bridge, host, none, overlay, macvlan and troubleshooting.

What you will learn in this chapter

  • Publish ports safely
  • Default vs user-defined bridge and Docker DNS
  • host and none modes
  • Overlay across hosts
  • macvlan and ipvlan
  • A network troubleshooting routine
  • Every docker network command
  • Load balance scaled replicas with nginx
  • Route many HTTPS sites with Traefik

All Docker commands in one place

Every docker command step by step on one running example (build, run, exec, logs, volumes, networks, Compose, cleanup) with a cheat sheet: All Docker Commands Step by Step with Examples

Concepts in this chapter

  1. 51.1Port publishing: reach a container from outside
  2. 51.2Default bridge vs user-defined bridge and DNS
  3. 51.3host and none networks
  4. 51.4Overlay networks across hosts
  5. 51.5macvlan and ipvlan: containers on the real LAN
  6. 51.6Troubleshoot container networking
  7. 51.7Every docker network command: full reference
  8. 51.8Load balancing with nginx across scaled containers (--scale api=3)
  9. 51.9Traefik: route many sites by labels with automatic HTTPS (Let's Encrypt)

The chapter recap is at the end of the last concept page.

Ravi Sir's Cards: 21 revision, interview and comparison cards for this chapter · मराठी cards