Interoperability of docker containers across hosts:
Host 1:
# apt-get install bridge-utils
# brctl addbr br0
# ifconfig br0 10.0.1.50 netmask 255.255.255.0
# brctl addif br0 eno1
The last 2 steps need to operate on ilo (because the network is no longer available at this time, ssh connection is not possible)
# ip addr del 10.0.1.50 dev eno1
# ip route del default
# ip route add default via 10.0.1.1 dev br0
# vi /etc/docker/daemon.json
"bridge": "br0"
:wq
# systemctl restart docker
# git clone https://github.com/jpetazzo/pipework
# cp pipework/pipework /usr/bin/
# pipework br0 aa 10.0.1.100/[email protected]
At this time, ping 10.0.1.100 (docker container ip) from the outside is working
Host 2 is the same as host 1. At this time, the two containers in different hosts are connected.