Get bridge name associated to docker Network
i am creating a docker network using “docker network create –d bridge mynet”. I want to get the bridge name that is associated to this docker network.
I know i can use the “-o” to provide bridge name. ex :”docker network create –d bridge -o com.docker.network.bridge.name=mybridge mynet”. This method will work with normal bridge driver but in my case, I am using an ovs driver hence i am starting the network as “docker network create –d ovs mynet”. If i use the “-o” in case of ovs driver it does not work.
please suggest me a way to get the bridge name associated to a network. The new bridge which is being created when i create the network,the bridge which has been created with it has a random name and i can see it using “ifconfig” command.