Docker 桥没有带有 sytemd-networkd 的载体

Docker 桥没有带有 sytemd-networkd 的载体

我连接到桥接网络的 docker 容器无法建立出站连接。我发现其中两个桥接网络没有运营商。我相信,我目前正在运行 systemd-networkd,因为 systemd 表示它处于活动状态并已启用。这不是与 DNS 相关的问题,因为我也无法 ping IP 地址。

networkctl list
[...]
    5 docker0         bridge   routable    unmanaged
    6 br-e9d46f28518e bridge   routable    unmanaged
    7 br-0bf9e6b83ab7 bridge   no-carrier  unmanaged
   67 br-9f2b2355610a bridge   no-carrier  unmanaged

更新 23.02。

我现在运行ip link ls master <interface一个非工作桥接接口:

可路由网桥 br-e9d46f28518e:

6845: veth031e414@if6844: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-e9d46f28518e state UP mode DEFAULT group default 
    link/ether aa:9b:14:50:c5:04 brd ff:ff:ff:ff:ff:ff link-netnsid 1
6849: veth7ca063a@if6848: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-e9d46f28518e state UP mode DEFAULT group default 
    link/ether 72:5c:64:9e:7e:72 brd ff:ff:ff:ff:ff:ff link-netnsid 4
6853: vethac1408d@if6852: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-e9d46f28518e state UP mode DEFAULT group default 
    link/ether 56:13:a0:75:9c:14 brd ff:ff:ff:ff:ff:ff link-netnsid 6
6855: veth6764634@if6854: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-e9d46f28518e state UP mode DEFAULT group default 
    link/ether ae:38:48:57:79:18 brd ff:ff:ff:ff:ff:ff link-netnsid 5

无载体桥没有返回任何内容

更新 24.02。

网桥具有以下 ip 地址:

码头工人0

inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0

br-e9d46f28518e

inet 172.19.0.1/16 brd 172.19.255.255 scope global br-e9d46f28518e

br-0bf9e6b83ab7

inet 172.18.0.1/16 brd 172.18.255.255 scope global br-0bf9e6b83ab7

br-9f2b2355610a

inet 172.21.0.1/16 brd 172.21.255.255 scope global br-9f2b2355610a

更新25.02

实际再次启动容器后br-06d8960b9155,对应于所述容器。尽管没有互联网连接,但它是可路由的。ip link ls master br-06d8960b9155显示这个:

11464: vethc11a61b@if11463: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-06d8960b9155 state UP mode DEFAULT group default 
    link/ether 5e:b8:1f:91:68:35 brd ff:ff:ff:ff:ff:ff link-netnsid 2
11466: vethe3b3dc3@if11465: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-06d8960b9155 state UP mode DEFAULT group default 
    link/ether 2e:ee:12:3c:0e:82 brd ff:ff:ff:ff:ff:ff link-netnsid 3

相关内容