Not seeing interface card for the respective custom bridge even custom bridge created

Here are the commands I have executed:

shyam@DESKTOP-OO7EVK2:~$ docker network ls
NETWORK ID     NAME        DRIVER    SCOPE
46f99a82de6d   bridge      bridge    local
60de4fcef0a4   host        host      local
fda4ef46a70c   my_bridge   bridge    local
cbd64af9e036   mybridge1   bridge    local
102c12692647   none        null      local
shyam@DESKTOP-OO7EVK2:~$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:4a:a4:b8:24  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.19.118.177  netmask 255.255.240.0  broadcast 172.19.127.255
        inet6 fe80::215:5dff:fec2:6eae  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:c2:6e:ae  txqueuelen 1000  (Ethernet)
        RX packets 4335  bytes 2485029 (2.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 902  bytes 114279 (114.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 84  bytes 10019 (10.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84  bytes 10019 (10.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The interface exists only if there are containers connected to it. Just creating a docker network is just a metadata for Docker without any actual interface configuration.

Other reason could be thaty ou are using Docker Desktop with WSL integration and also instaled Docker in the WSL distro, so you see the interfaces of the Docker daemon installed directly in WSL and not the interfaces available in Docker Desktop’s distribution.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.