v2fly / docker

docker build repo for v2fly
https://hub.docker.com/r/v2fly/v2fly-core
MIT License
754 stars 215 forks source link

failed to set SO_MARK > operation not permitted #7

Closed overcache closed 4 years ago

overcache commented 4 years ago

日志中出现了一些 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

overcache commented 4 years ago

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

或者 docker-compose.yml 添加 cap_add: