Wie fahre ich Docker -Container mit einem Brückennetz auf einer Binded -Schnittstelle (Bond0) aus?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie fahre ich Docker -Container mit einem Brückennetz auf einer Binded -Schnittstelle (Bond0) aus?

by Anonymous » 20 Aug 2025, 16:39

Ich versuche, meine Docker -Container für eine Fehlertoleranz ein gebundenes Schnittstelle (Bond0) zu verwenden, anstatt direkt an einen einzelnen Netzwerkadapter zu binden.

Code: Select all

# works fine if I use 'enp0s8' instead of 'bond0'
nmcli conn add con-name cmynode type ethernet ifname bond0 ip4 10.11.11.241 ip4 10.11.11.249

docker network create \
-d bridge \
--subnet=10.11.11.0/24 \
--ip-range=10.11.11.10/29 \
--gateway=10.11.11.8 \
-o parent=bond0 \
bondbridge

docker run -itd --rm \
--name flask \
--hostname apisrv \
-v /etc/localtime:/etc/localtime:ro \
-v /pace/:/pace \
-v /pacedata/:/pacedata/ \
-v /root/gitrepo/resolv.conf:/etc/resolv.conf \
--net bondbridge \
-p 10.11.11.249:5001:5001 \
-v /TS/:/TS \
-v /TSd/:/TSd \
mn/qs:flask3
Dieses Setup funktioniert perfekt, wenn ich Bond0 durch ein einzelnes NIC ersetze (z. B. Enp0S8 ). So konfigurieren Sie in Docker bei Verwendung einer gebundenen Schnittstelle (

Code: Select all

bond0
) als übergeordnetes?>

Top