在Docker 容器中使用需要创建 /dev/net/tun 设备并允许修改 iptables; 同时需要设置 net.ipv4.ip_forward 与net.ipv4.conf.all.route_localnet 内核参数. 因此在创建容器时需要加入以下参数: docker run \ --sysctl net.ipv4.ip_forward=1 \ --sysctl net.ipv4.conf.all.route_localnet=1 \ --cap-add ...
github.com/docker/docker v26.0.0+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect 2 changes: 2 additions & 0 deletions 2 go.sum Original file line numberDiff line...
5、选择性进行网络配置, 例如为 Docker 用户自动设置 nftables 6、在后台持续监视本地或远程配置文件变动, 然后自动重载四、如何编译 TPClash由于TPClash 是一个集成工具, 所以在编译前请安装好以下工具链:git curl jq tar gzip nodejs(用于编译 Dashboard) pnpm(Dashboard 编译所需依赖工具, 可通过 npm i -g...
docker run -dt \ --name tpclash \ --privileged \ --network=host \ -v /root/clash.yaml:/etc/clash.yaml \+-v /var/run/docker.sock:/var/run/docker.sock \mritd/tpclash 然后需要在配置文件中开启 Tracing: profile:tracing:true 最后启动 TPClash 时增加 Tracing 选项即可: ...
Actions Projects Security Insights Additional navigation options master 2Branches56Tags Code Folders and files Name Last commit message Last commit date Latest commit j33h22 chore(deps): Downgrade Docker Apr 6, 2024 ff2a137·Apr 6, 2024 History ...
在Docker容器中使用需要创建/dev/net/tun设备,允许iptables的修改,并设置net.ipv4.ip_forward与net.ipv4.conf.all.route_localnet内核参数。 因此在创建容器时需要加入参数--sysctl net.ipv4.ip_forward=1 --sysctl net.ipv4.conf.all.route_localnet=1 --cap-add MKNOD --cap-add NET_ADMI。例如: ...
ExecStart=/usr/bin/docker run --tty \ --privileged \ --network host \ --name tpclash \ -v /data:/data \ -v /run:/run \ mritd/tpclash tpclash \ TPClash/tpclash tpclash \ --config https://example.com/clash.yaml [Install] 8 changes: 5 additions & 3 deletions 8 go.mod Ori...
go.sum chore(deps): bump github.com/docker/docker Jan 25, 2024 helper.go feat(config): support default dns server func Jun 25, 2023 install.go feat(static): try not to extract files Sep 25, 2023 main.go feat(premium): Restore support for Clash Premium Jan 29, 2024 static.go fix(st...
5、选择性进行网络配置, 例如为 Docker 用户自动设置 nftables 6、在后台持续监视本地或远程配置文件变动, 然后自动重载 四、如何编译 TPClash 由于TPClash 是一个集成工具, 所以在编译前请安装好以下工具链: git curl jq tar gzip nodejs(用于编译 Dashboard) pnpm(Dashboard 编译所需依赖工具, 可通过 npm i...
5、选择性进行网络配置, 例如为 Docker 用户自动设置 nftables 6、在后台持续监视本地或远程配置文件变动, 然后自动重载 四、如何编译 TPClash 由于TPClash 是一个集成工具, 所以在编译前请安装好以下工具链: git curl jq tar gzip nodejs(用于编译 Dashboard) pnpm(Dashboard 编译所需依赖工具, 可通过 npm i...