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
This commit is contained in:
Sam Mesterton-Gibbons 2020-09-30 22:27:55 +01:00
parent 69d9188160
commit 6d3c59cd6e
2 changed files with 2 additions and 2 deletions

View file

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

View file

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