设置 docker 非特权模式

This commit is contained in:
bjdgyc
2025-02-27 16:31:17 +08:00
parent a77f4cae84
commit 8329e8ec4f
3 changed files with 17 additions and 9 deletions

View File

@@ -20,10 +20,7 @@ func Start() {
admin.InitLockManager() //初始化防爆破定时器和IP白名单
// 开启服务器转发
err := execCmd([]string{"sysctl -w net.ipv4.ip_forward=1"})
if err != nil {
base.Fatal(err)
}
execCmd([]string{"sysctl -w net.ipv4.ip_forward=1"})
switch base.Cfg.LinkMode {
case base.LinkModeTUN: