Skip to content

Commit d7d7a08

Browse files
authored
chore: pin docker version in Dockerfile (#2899)
Pin docker version instead of downloading latest. 28.5.2 is the latest that works alright with our automation env. see #2860 for more context. For #2893
1 parent bac2f0c commit d7d7a08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ RUN echo \
5050
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
5151
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
5252
tee /etc/apt/sources.list.d/docker.list > /dev/null
53-
RUN apt update
5453

55-
# Install Docker
56-
RUN apt-get -y install docker-ce
54+
# Install Docker and pin version
55+
RUN apt update && \
56+
apt-get -y install docker-ce=5:28.5.2-1~debian.13~trixie && \
57+
rm -rf /var/lib/apt/lists/*
5758

5859
# Add the Google Cloud SDK distribution URI as a package source
5960
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \

0 commit comments

Comments
 (0)