Docker Networking Fundamentals
Bridge networks
Docker bridge networks connect containers through a virtual bridge while keeping separate network namespaces.
Published ports
A mapping such as 8088:80 forwards host port 8088 to port 80 inside the container.
Service discovery
Prefer user-defined bridge networks and service names over hard-coded container IP addresses.