-
-
Notifications
You must be signed in to change notification settings - Fork 148
Use non‐root user
seriousm4x edited this page Sep 19, 2023
·
3 revisions
- Stop the container if it's running
- Add
user: 1000:1000to yourdocker-compose.yml. Replace 1000 with your $UID:$GID - Change folder permissions for the docker volume (create
datafolder if it doesn't exist)
chown -R 1000:1000 ./data- Start the container
Grant CAT_NET_RAW to the binary (Only needs to be done once):
sudo setcap cap_net_raw=+ep /path/to/upsnapAfter that, you can just run the binary as normal user.