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 -```