From 6d3c59cd6e5432b3708c051b16c7beed89a05e47 Mon Sep 17 00:00:00 2001 From: Sam Mesterton-Gibbons Date: Wed, 30 Sep 2020 22:27:55 +0100 Subject: [PATCH] Add missing NET_ADMIN capability to run commands Adds missing `--cap-add` to the docker run command in the README, and also the demo startup script. Fixes #1 --- README.md | 2 +- vagrant-demo/run-demo.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14a15aa..8e1b8c6 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ just fine. ## How do I run it? Run something like: ```bash -docker run --net=host -e DHCP_RANGE_START=192.168.0.1 samdbmg/dhcp-netboot.xyz +docker run --net=host --cap-add=NET_ADMIN -e DHCP_RANGE_START=192.168.0.1 samdbmg/dhcp-netboot.xyz ``` Make sure you adjust the IP address in `DHCP_RANGE_START` to the first address on your network. dnsmasq will automatically figure out the right subnet mask to diff --git a/vagrant-demo/run-demo.sh b/vagrant-demo/run-demo.sh index 9b58b4d..faa1c25 100755 --- a/vagrant-demo/run-demo.sh +++ b/vagrant-demo/run-demo.sh @@ -3,7 +3,7 @@ DHCP_RANGE_START=${1:-192.168.0.1} # Start the netboot container and run it in the background -docker run --net=host -e DHCP_RANGE_START=${DHCP_RANGE_START} samdbmg/dhcp-netboot.xyz & +docker run --net=host --cap-add=NET_ADMIN -e DHCP_RANGE_START=${DHCP_RANGE_START} samdbmg/dhcp-netboot.xyz & DOCKER_PROCESS=$! # Catch ctrl-c and clean up