mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Dockerfile: switch to iptables-legacy to match the host
CI runs on Ubuntu 16.04 machines, which use iptables (legacy), but
Debian buster uses nftables. Because of this, DNS resolution does not
work if the daemon configures iptables.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit bb0472bd23
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4aaf3ead97
commit
68db0c1739
1 changed files with 5 additions and 0 deletions
|
@ -281,6 +281,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
zip \
|
zip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Switch to use iptables instead of nftables (to match the host machine)
|
||||||
|
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy || true \
|
||||||
|
&& update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy || true \
|
||||||
|
&& update-alternatives --set arptables /usr/sbin/arptables-legacy || true
|
||||||
|
|
||||||
RUN pip3 install yamllint==1.16.0
|
RUN pip3 install yamllint==1.16.0
|
||||||
|
|
||||||
COPY --from=dockercli /build/ /usr/local/cli
|
COPY --from=dockercli /build/ /usr/local/cli
|
||||||
|
|
Loading…
Reference in a new issue