Find the all docker network details
The following command displays network names along with their subnet information:
docker network inspect $(docker network ls -q) \| grep -E '"Subnet"|Name'
This is useful for quickly identifying available address ranges before creating new Oracle RAC networks.
Example:
ubuntu01@ubuntu01-VirtualBox:/opt/.secrets$ docker network inspect $(docker network ls -q) \| grep -E '"Subnet"|Name' "Name": "bridge", "Subnet": "172.17.0.0/16", "Name": "host", "Name": "none", "Name": "oracle-net", "Subnet": "172.18.0.0/16", "Name": "oracle-net1", "Subnet": "172.19.0.0/16", "Name": "rac_eth0pub1_nw", "Subnet": "10.0.20.0/24", "Name": "rac_eth1priv2_nw", "Subnet": "192.168.17.0/24", "Name": "rac_eth2priv2_nw", "Subnet": "192.168.18.0/24",ubuntu01@ubuntu01-VirtualBox:/opt/.secrets$