Docker Network

Voir https://github.com/lbernail/dockeroverlays/blob/master/setup_vxlan

systemctl stop docker ip link set down dev br-1164ecd073bd

[root@acme]# ip route get 192.168.205.11
192.168.205.11 dev br-22c8d0f47cfe src 192.168.0.1 uid 0
cache
[root@acme]# brctl show
bridge name bridge id STP enabled interfaces
br-22c8d0f47cfe 8000.0242b28bc79b no veth05ae059
veth3091fa8
veth88ed8e5
docker0 8000.02426cf41f39 no
[root@acme]# docker network list
NETWORK ID NAME DRIVER SCOPE
d5ff36324662 bridge bridge local
e82ce3715151 host host local
8195441310fe none null local
22c8d0f47cfe plop bridge local
[root@acme]# docker network inspect 22c8d0f47cfe

Il est possible d'explicite la conf dans Docker-compose

networks: backend:
networks: backend: ipam: driver: default config: - subnet: 192.168.10.0/24

network host

Il est possible de faire :

networks: hostnw: external: name: host

Mais il est mieux de faire

services: webapp: build: . network_mode: "host"