Check out example codes for "check subnets docker". It will help you in understanding the concepts better.

Code Example 1

docker network ls [OPTIONS]

Learn ReactJs, React Native from akashmittal.com