Display All Docker Networks and Subnets

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$
This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply