Calculate how many containers a Docker bridge network's subnet can support.
A Docker bridge network assigns one IP per container from its subnet. Usable IPs = 2^(32−CIDR) − reserved. A /24 gives 254 usable addresses (256 − network − broadcast); a /16 gives ~65,533.
Usable IPs
usableIPs = 2^(32 − CIDR) − reserved
Docker will fail to start new containers with an error like 'no available IPs in pool'. You'd need to create additional bridge networks with different subnets.
Yes — each user-defined bridge network has its own subnet. Containers can be attached to multiple networks for cross-network communication.