Fix issues on WSL2 (#1988)

This commit is contained in:
Pascal Vizeli
2021-04-28 18:11:52 +02:00
committed by GitHub
parent 9fa54b90eb
commit 2c56d9c623

View File

@@ -19,7 +19,21 @@ RUN \
xz-utils
# Install docker
RUN curl -fsSL https://get.docker.com | sh -
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
gpg-agent \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& add-apt-repository "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
&& apt-get update && apt-get install -y --no-install-recommends \
docker-ce \
docker-ce-cli \
containerd.io \
&& update-alternatives --set iptables /usr/sbin/iptables-legacy \
&& update-alternatives --set ip6tables /usr/sbin/iptables-legacy \
&& rm -rf /var/lib/apt/lists/*
# Install shellcheck
RUN \
@@ -31,4 +45,4 @@ RUN \
&& rm -rf "./shellcheck-stable"
# Generate a machine-id for this container
RUN rm /etc/machine-id && dbus-uuidgen --ensure=/etc/machine-id
RUN rm /etc/machine-id && dbus-uuidgen --ensure=/etc/machine-id