From d53150192b1449bf884f18f58e4dd75d149080df Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sat, 7 Sep 2024 16:46:41 +0200 Subject: [PATCH] :coffin: remove unstable docker example --- README.md | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/README.md b/README.md index 1e163a0..756f635 100644 --- a/README.md +++ b/README.md @@ -94,44 +94,3 @@ iface eth0 inet static netmask 255.255.255.252 gateway 192.168.234.1 ``` - - - -## Example: Isolate a Docker Container -#### Host (`/etc/network/interfaces`) -```bash -auto enp1s0 -iface enp1s0 inet static - # ... - - up ifconfig enp1s0:1 10.0.0.4 netmask 255.0.0.0 up - -auto br-dc-test -iface br-dc-test inet static - bridge_ports none - address 192.168.234.1 - network 192.168.234.0 - netmask 255.255.255.252 - pre-up /opt/xynat/xynat -s 192.168.234.2 -p 10.0.0.4 -x 10.0.0.0/8 -z - post-down /opt/xynat/xynat -``` - -#### Container (`docker-compose.yml`) -```yml -services: - testservice: - # ... - networks: - testnet: - ipv4_address: 192.168.234.2 - -networks: - testnet: - driver: bridge - driver_opts: - com.docker.network.bridge.name: "br-dc-test" - com.docker.network.bridge.enable_ip_masquerade: "false" - ipam: - config: - - subnet: 192.168.234.0/30 -```