mirror of
https://github.com/samdbmg/dhcp-netboot.xyz.git
synced 2026-01-23 02:25:09 +00:00
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:
parent
69d9188160
commit
6d3c59cd6e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue