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.
Container एकमेकांशी कसे बोलतात, आणि बाहेरचा user container पर्यंत कसा पोहोचतो, हे आज बघूया. Bridge, host, none, overlay, macvlan आणि troubleshooting.
Container आपस में कैसे बात करते हैं, और बाहर का user container तक कैसे पहुँचता है, यह आज देखेंगे. Bridge, host, none, overlay, macvlan और 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
- 51.1Port publishing: reach a container from outside
- 51.2Default bridge vs user-defined bridge and DNS
- 51.3host and none networks
- 51.4Overlay networks across hosts
- 51.5macvlan and ipvlan: containers on the real LAN
- 51.6Troubleshoot container networking
- 51.7Every docker network command: full reference
- 51.8Load balancing with nginx across scaled containers (--scale api=3)
- 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