v2fly/docker

failed to set SO_MARK > operation not permitted

overcache opened this issue · 1 comments

日志中出现了一些 operation not permitted 的内容, 不知道 docker 里有没有CAP_NET_ADMIN这种能力? 该怎么解决呢

2020/07/06 17:21:51 [Info] [2754594387] v2ray.com/core/transport/internet: failed to apply socket options > v2ray.com/core/transport/internet: failed to set SO_MARK > operation not permitted

docker 命令行参数加 --cap-add NET_ADMIN 就行了

或者 docker-compose.yml 添加
cap_add:
- NET_ADMIN