Skip to content

Commit e0cc984

Browse files
fix: change iptables backend to legacy (#58)
* fix: change `iptables` backend to legacy * ci: bump version
1 parent 0e29efc commit e0cc984

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,15 @@ RUN echo -en "https://dl-cdn.alpinelinux.org/alpine/v$(cut -d'.' -f1,2 /etc/alpi
3333
&& apk upgrade \
3434
&& apk add bash jq fuse-overlayfs --no-cache \
3535
&& apk add slirp4netns --no-cache \
36+
# Needed only for `update-alternatives` below
37+
&& apk add dpkg --no-cache \
3638
&& rm /usr/local/bin/vpnkit \
3739
&& rm -rf /var/cache/apk/*
3840

41+
# Backward compatibility with kernels that do not support `iptables-nft`. Check #CR-23033 for details.
42+
RUN update-alternatives --install $(which iptables) iptables $(which iptables-legacy) 10 \
43+
&& update-alternatives --install $(which ip6tables) ip6tables $(which ip6tables-legacy) 10
44+
3945
ENV DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns
4046

4147
COPY --from=node-exporter /bin/node_exporter /bin/

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 1.28.4
1+
version: 1.28.5

0 commit comments

Comments
 (0)