From e1434ba283aa71d4ef7f9567ae459cdc32d6bddb Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Fri, 20 Dec 2024 02:04:47 -0300 Subject: [PATCH] use legacy iptables Signed-off-by: Marcos Lilljedahl --- dockerfiles/dind/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dockerfiles/dind/Dockerfile b/dockerfiles/dind/Dockerfile index 4a47b7e..0c6cde8 100644 --- a/dockerfiles/dind/Dockerfile +++ b/dockerfiles/dind/Dockerfile @@ -5,7 +5,8 @@ RUN apk add --no-cache py-pip python3-dev libffi-dev openssl-dev git tmux apache && ln -s /usr/local/bin/docker /usr/bin/docker ENV GOPATH /root/go -ENV PATH $PATH:$GOPATH +ENV IPTABLES_LEGACY /usr/local/sbin/.iptables-legacy/ +ENV PATH $IPTABLES_LEGACY:$GOPATH:$PATH ENV DOCKER_TLS_CERTDIR="" @@ -29,7 +30,7 @@ RUN wget -O /tmp/scout.tar.gz https://github.com/docker/scout-cli/releases/downl # Add bash completion and set bash as default shell -RUN curl -sS https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker -o /etc/bash_completion.d/docker \ +RUN curl -sS https://raw.githubusercontent.com/docker/cli/refs/heads/master/contrib/completion/bash/docker -o /etc/bash_completion.d/docker \ && sed -i "s/ash/bash/" /etc/passwd # Replace modprobe with a no-op to get rid of spurious warnings