Checking Network Reachability
Explore how to check network reachability between Docker containers by understanding IP address types, subnetting, ports, and using network commands. Learn to create container networks, launch containers, and test communication to resolve Docker container networking errors.
We'll cover the following...
In order to determine if an IP address is reachable from a container, we need to understand some terms associated with IP addresses.
IP addresses
An IP (Internet Protocol) address is a unique numerical identifier assigned to each device connected to a network. It can be an IPv4 (32-bit) or IPv6 (128-bit) format. The most commonly used is an IPv4. An IPv4 address consists of four numbers (octets) separated by periods, e.g., 192.168.0.1. IP addresses are categorized into different classes: A, B, C, D, and E. Each class has a specific range of addresses.
Subnets
Subnetting is a technique used to divide networks into smaller, manageable subnetworks. It refers to borrowing bits from the host portion of an IP address to create a network prefix.
The subnet mask ...