Skip to content

Commit 0e6e4e5

Browse files
committed
修复 alpine:3.19 下 iptables 不生效的问题
1 parent 29a3e4b commit 0e6e4e5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docker/init_release.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ if [[ $CN == "yes" ]]; then
88
export GOPROXY=https://goproxy.cn
99
fi
1010

11-
apk add --no-cache bash iptables iproute2 tzdata
11+
#兼容老版 iptables
12+
apk add --no-cache iptables iptables-legacy
13+
rm /sbin/iptables && ln -s /sbin/iptables-legacy /sbin/iptables
14+
15+
apk add --no-cache ca-certificates bash iproute2 tzdata
1216
chmod +x /app/docker_entrypoint.sh
1317
mkdir /app/log
1418

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.11.1
1+
0.11.2

0 commit comments

Comments
 (0)