Open duanyunlun opened 1 year ago
Hi @duanyunlun, these are related to Docker runtime privileges and Linux capabilities. SYS_ADMIN
, SYS_RESOURCE
, NET_ADMIN
, and BPF
are capability keys that allow additional capabilities to give Docker more privileges. Please refer to the Docker documentation here for a more detailed explanation regarding the use case for each.
Could you please try running the following command to start the Netbird client in Docker
docker run --rm --name PEER_NAME --hostname PEER_NAME --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --cap-add=SYS_RESOURCE -d -e NB_SETUP_KEY=<SETUP KEY> -v netbird-client:/etc/netbird netbirdio/netbird:latest
@bcmmbaga The IKuai's docker can not run custom command, so I think it can not be used as a "Normal" Docker Engine.
Hello @duanyunlun can you check this page https://bbs.ikuai8.com/forum.php?mod=viewthread&tid=143433&highlight=docker? It seems that there is support for the --cap-add flags in recent version, at least the first comment there states that all docker functionality is there (if my translated is correct).
Describe the problem I setup the docker in IKuai's docker plugin but the netbird's log shows that I may lost some Environment variables, which I don't know what are they. Hope anyone can explain the Environment variables meaning to me:
SYS_ADMIN SYS_RESOURCE NET_ADMIN NET_RAW BPF
Here's the IKuai's docker settings (doc_LAN is the network of docker, not the Host LAN)
Here's the logs: