From 323db065ad77a41461825c506d73ec4cdc8b858e Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 15 Nov 2022 19:25:16 +0100 Subject: [PATCH] Add information about required capabilites for docker --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 67bbc1d..33ee5c1 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,9 @@ Variable|Description|Default ### 1.2.2. Docker -Depending on the needs, the Container can be run in `network_mode: host` to be able to accessrouting-tables and interfaces of the host. +Depending on the needs, the Container can be run in `network_mode: host` to be able to access routing-tables and interfaces of the host. + +Additionally the capability `NET_ADMIN` is required for interacting with interfaces.
docker-compose.yml @@ -61,7 +63,9 @@ services: routingTableWGTranslator: image: ruakij/RoutingTableWGTranslator restart: unless-stopped - network_mode: "host" + network_mode: host + cap_add: + - NET_ADMIN environment: - INTERFACE="" ``` @@ -69,7 +73,7 @@ services:
-### 1.2.2. Without Docker +### 1.2.3. Without Docker Clone the Repository `git clone ` and build the Program with `go build cmd/app`