Skip to content

Commit

Permalink
Fix issues on WSL2 (home-assistant#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Apr 28, 2021
1 parent 9fa54b9 commit 2c56d9c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

0 comments on commit 2c56d9c

Please sign in to comment.