Skip to content

Commit

Permalink
Merge pull request #30701 from ameukam/bootstrap-fix-docker-install
Browse files Browse the repository at this point in the history
images/bootstrap: update Docker installation
  • Loading branch information
k8s-ci-robot committed Sep 13, 2023
2 parents 201032c + 5ed9207 commit 8c440c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions images/bootstrap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
rm -rf /var/lib/apt/lists/*

# Add the Docker apt-repository
RUN curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg \
| apt-key add - && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable"
RUN curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& chmod a+r /etc/apt/keyrings/docker.gpg \
&& echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install Docker
# TODO: the `sed` is a bit of a hack, look into alternatives.
Expand Down

0 comments on commit 8c440c6

Please sign in to comment.