Add information about required capabilites for docker
This commit is contained in:
		
							parent
							
								
									ca9507e26f
								
							
						
					
					
						commit
						323db065ad
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							@ -50,7 +50,9 @@ Variable|Description|Default
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### 1.2.2. Docker
 | 
					### 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.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<details><summary><code>docker-compose.yml</code></summary>
 | 
					<details><summary><code>docker-compose.yml</code></summary>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -61,7 +63,9 @@ services:
 | 
				
			|||||||
  routingTableWGTranslator:
 | 
					  routingTableWGTranslator:
 | 
				
			||||||
    image: ruakij/RoutingTableWGTranslator
 | 
					    image: ruakij/RoutingTableWGTranslator
 | 
				
			||||||
    restart: unless-stopped
 | 
					    restart: unless-stopped
 | 
				
			||||||
    network_mode: "host"
 | 
					    network_mode: host
 | 
				
			||||||
 | 
					    cap_add:
 | 
				
			||||||
 | 
					      - NET_ADMIN
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      - INTERFACE="<wgInterfaceName or empty for wg0>"
 | 
					      - INTERFACE="<wgInterfaceName or empty for wg0>"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@ -69,7 +73,7 @@ services:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<br>
 | 
					<br>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1.2.2. Without Docker
 | 
					### 1.2.3. Without Docker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Clone the Repository `git clone <URI>` and build the Program with `go build cmd/app`
 | 
					Clone the Repository `git clone <URI>` and build the Program with `go build cmd/app`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user