Add NET_ADMIN, NET_RAW

This commit is contained in:
David 2024-09-01 13:47:16 +09:00 committed by GitHub
parent 7b45306415
commit a6c8bffd58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@ docker run --name wyl \
-e "IFACES=$YOURIFACE" \ -e "IFACES=$YOURIFACE" \
-e "TZ=$YOURTIMEZONE" \ -e "TZ=$YOURTIMEZONE" \
--network="host" \ --network="host" \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
-v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \ -v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \
aceberg/watchyourlan:v2 aceberg/watchyourlan:v2
``` ```
@ -156,6 +157,7 @@ docker run --name wyl \
-e "IFACES=$YOURIFACE" \ -e "IFACES=$YOURIFACE" \
-e "TZ=$YOURTIMEZONE" \ -e "TZ=$YOURTIMEZONE" \
--network="host" \ --network="host" \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
-v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \ -v $DOCKERDATAPATH/wyl:/data/WatchYourLAN \
aceberg/watchyourlan:v2 -n "http://$YOUR_IP:8850" aceberg/watchyourlan:v2 -n "http://$YOUR_IP:8850"
``` ```
@ -180,4 +182,4 @@ Moved to [docs/API.md](./docs/API.md)
- [Bootstrap](https://getbootstrap.com/) - [Bootstrap](https://getbootstrap.com/)
- Themes: [Free themes for Bootstrap](https://bootswatch.com) - Themes: [Free themes for Bootstrap](https://bootswatch.com)
</details> </details>