Repository navigation
[security] Update mongo (5.0 and 6.0) - #21477
Merged
Merged
Conversation
Changes: - docker-library/mongo@9363996: Merge pull request docker-library/mongo#756 from orgads/update-eol - docker-library/mongo@0b1dd4c: Fix jq comment line continuation in versions.sh (docker-library/mongo#754) - docker-library/mongo@2767131: Update 5.0 to 5.0.33 and 6.0 to 6.0.28 - docker-library/mongo@efc6293: Revive EOL versions again to fix CVE-2026-8053
Diff for 8d5eddd:diff --git a/_bashbrew-cat b/_bashbrew-cat
index 6e0a4ef..3bc4821 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -1,6 +1,60 @@
Maintainers: Tianon Gravi <admwiggin@gmail.com> (@tianon), Joseph Ferguson <yosifkit@gmail.com> (@yosifkit)
GitRepo: https://github.com/docker-library/mongo.git
+Tags: 5.0.33-focal, 5.0-focal
+SharedTags: 5.0.33, 5.0
+Architectures: amd64, arm64v8
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 5.0
+
+Tags: 5.0.33-nanoserver-ltsc2022, 5.0-nanoserver-ltsc2022
+SharedTags: 5.0.33-nanoserver, 5.0-nanoserver
+Architectures: windows-amd64
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 5.0/windows/nanoserver-ltsc2022
+Constraints: nanoserver-ltsc2022, windowsservercore-ltsc2022
+
+Tags: 5.0.33-windowsservercore-ltsc2022, 5.0-windowsservercore-ltsc2022
+SharedTags: 5.0.33-windowsservercore, 5.0-windowsservercore, 5.0.33, 5.0
+Architectures: windows-amd64
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 5.0/windows/windowsservercore-ltsc2022
+Constraints: windowsservercore-ltsc2022
+
+Tags: 5.0.33-windowsservercore-ltsc2025, 5.0-windowsservercore-ltsc2025
+SharedTags: 5.0.33-windowsservercore, 5.0-windowsservercore, 5.0.33, 5.0
+Architectures: windows-amd64
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 5.0/windows/windowsservercore-ltsc2025
+Constraints: windowsservercore-ltsc2025
+
+Tags: 6.0.28-jammy, 6.0-jammy, 6-jammy
+SharedTags: 6.0.28, 6.0, 6
+Architectures: amd64, arm64v8
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 6.0
+
+Tags: 6.0.28-nanoserver-ltsc2022, 6.0-nanoserver-ltsc2022, 6-nanoserver-ltsc2022
+SharedTags: 6.0.28-nanoserver, 6.0-nanoserver, 6-nanoserver
+Architectures: windows-amd64
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 6.0/windows/nanoserver-ltsc2022
+Constraints: nanoserver-ltsc2022, windowsservercore-ltsc2022
+
+Tags: 6.0.28-windowsservercore-ltsc2022, 6.0-windowsservercore-ltsc2022, 6-windowsservercore-ltsc2022
+SharedTags: 6.0.28-windowsservercore, 6.0-windowsservercore, 6-windowsservercore, 6.0.28, 6.0, 6
+Architectures: windows-amd64
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 6.0/windows/windowsservercore-ltsc2022
+Constraints: windowsservercore-ltsc2022
+
+Tags: 6.0.28-windowsservercore-ltsc2025, 6.0-windowsservercore-ltsc2025, 6-windowsservercore-ltsc2025
+SharedTags: 6.0.28-windowsservercore, 6.0-windowsservercore, 6-windowsservercore, 6.0.28, 6.0, 6
+Architectures: windows-amd64
+GitCommit: 27671311507e395a74cc803a7a36d6b781ffeca3
+Directory: 6.0/windows/windowsservercore-ltsc2025
+Constraints: windowsservercore-ltsc2025
+
Tags: 7.0.34-jammy, 7.0-jammy, 7-jammy
SharedTags: 7.0.34, 7.0, 7
Architectures: amd64, arm64v8
diff --git a/_bashbrew-list b/_bashbrew-list
index d174d90..6123ce1 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -1,3 +1,38 @@
+mongo:5.0
+mongo:5.0-focal
+mongo:5.0-nanoserver
+mongo:5.0-nanoserver-ltsc2022
+mongo:5.0-windowsservercore
+mongo:5.0-windowsservercore-ltsc2022
+mongo:5.0-windowsservercore-ltsc2025
+mongo:5.0.33
+mongo:5.0.33-focal
+mongo:5.0.33-nanoserver
+mongo:5.0.33-nanoserver-ltsc2022
+mongo:5.0.33-windowsservercore
+mongo:5.0.33-windowsservercore-ltsc2022
+mongo:5.0.33-windowsservercore-ltsc2025
+mongo:6
+mongo:6-jammy
+mongo:6-nanoserver
+mongo:6-nanoserver-ltsc2022
+mongo:6-windowsservercore
+mongo:6-windowsservercore-ltsc2022
+mongo:6-windowsservercore-ltsc2025
+mongo:6.0
+mongo:6.0-jammy
+mongo:6.0-nanoserver
+mongo:6.0-nanoserver-ltsc2022
+mongo:6.0-windowsservercore
+mongo:6.0-windowsservercore-ltsc2022
+mongo:6.0-windowsservercore-ltsc2025
+mongo:6.0.28
+mongo:6.0.28-jammy
+mongo:6.0.28-nanoserver
+mongo:6.0.28-nanoserver-ltsc2022
+mongo:6.0.28-windowsservercore
+mongo:6.0.28-windowsservercore-ltsc2022
+mongo:6.0.28-windowsservercore-ltsc2025
mongo:7
mongo:7-jammy
mongo:7-nanoserver
diff --git a/_bashbrew-list-build-order b/_bashbrew-list-build-order
index 5276241..65e2718 100644
--- a/_bashbrew-list-build-order
+++ b/_bashbrew-list-build-order
@@ -1,3 +1,9 @@
+mongo:5.0-focal
+mongo:5.0-windowsservercore-ltsc2022
+mongo:5.0-windowsservercore-ltsc2025
+mongo:6-jammy
+mongo:6-windowsservercore-ltsc2022
+mongo:6-windowsservercore-ltsc2025
mongo:7-jammy
mongo:7-windowsservercore-ltsc2022
mongo:7-windowsservercore-ltsc2025
@@ -10,6 +16,8 @@ mongo:8.3-windowsservercore-ltsc2025
mongo:noble
mongo:windowsservercore-ltsc2022
mongo:windowsservercore-ltsc2025
+mongo:5.0-nanoserver-ltsc2022
+mongo:6-nanoserver-ltsc2022
mongo:7-nanoserver-ltsc2022
mongo:8.0-nanoserver-ltsc2022
mongo:8.3-nanoserver-ltsc2022
diff --git a/mongo_7-jammy/Dockerfile b/mongo_5.0-focal/Dockerfile
similarity index 88%
copy from mongo_7-jammy/Dockerfile
copy to mongo_5.0-focal/Dockerfile
index e7c3e01..885bac8 100644
--- a/mongo_7-jammy/Dockerfile
+++ b/mongo_5.0-focal/Dockerfile
@@ -4,7 +4,7 @@
# PLEASE DO NOT EDIT IT DIRECTLY.
#
-FROM ubuntu:jammy
+FROM ubuntu:focal
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN set -eux; \
@@ -59,10 +59,10 @@ RUN set -eux; \
\
# download/install MongoDB PGP keys
export GNUPGHOME="$(mktemp -d)"; \
- wget -O KEYS 'https://pgp.mongodb.com/server-7.0.asc'; \
+ wget -O KEYS 'https://pgp.mongodb.com/server-5.0.asc'; \
gpg --batch --import KEYS; \
mkdir -p /etc/apt/keyrings; \
- gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /etc/apt/keyrings/mongodb.asc; \
+ gpg --batch --export --armor 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11' > /etc/apt/keyrings/mongodb.asc; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME" KEYS; \
\
@@ -85,12 +85,12 @@ ARG MONGO_PACKAGE=mongodb-org
ARG MONGO_REPO=repo.mongodb.org
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
-ENV MONGO_MAJOR 7.0
-RUN echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu jammy/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list"
+ENV MONGO_MAJOR 5.0
+RUN echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list"
-# https://docs.mongodb.org/master/release-notes/7.0/
-ENV MONGO_VERSION 7.0.34
-# 05/06/2026, https://github.com/mongodb/mongo/tree/ed9a6630253d3bc301e5ef19606704715d1e2066
+# https://docs.mongodb.org/master/release-notes/5.0/
+ENV MONGO_VERSION 5.0.33
+# 05/06/2026, https://github.com/mongodb/mongo/tree/20315d70b93ab896168da81e4ed502d859ad0511
RUN set -x \
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
@@ -102,8 +102,6 @@ RUN set -x \
${MONGO_PACKAGE}-shell=$MONGO_VERSION \
${MONGO_PACKAGE}-mongos=$MONGO_VERSION \
${MONGO_PACKAGE}-tools=$MONGO_VERSION \
- ${MONGO_PACKAGE}-database=$MONGO_VERSION \
- ${MONGO_PACKAGE}-database-tools-extra=$MONGO_VERSION \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/mongodb \
&& mv /etc/mongod.conf /etc/mongod.conf.orig
diff --git a/mongo_7-jammy/docker-entrypoint.sh b/mongo_5.0-focal/docker-entrypoint.sh
similarity index 100%
copy from mongo_7-jammy/docker-entrypoint.sh
copy to mongo_5.0-focal/docker-entrypoint.sh
diff --git a/mongo_8.0-nanoserver-ltsc2022/Dockerfile b/mongo_5.0-nanoserver-ltsc2022/Dockerfile
similarity index 68%
copy from mongo_8.0-nanoserver-ltsc2022/Dockerfile
copy to mongo_5.0-nanoserver-ltsc2022/Dockerfile
index f69a831..be06f5a 100644
--- a/mongo_8.0-nanoserver-ltsc2022/Dockerfile
+++ b/mongo_5.0-nanoserver-ltsc2022/Dockerfile
@@ -14,19 +14,19 @@ RUN setx /m PATH "C:\mongodb\bin;%PATH%"
USER ContainerUser
# doing this first to share cache across versions more aggressively
-COPY --from=mongo:8.0.23-windowsservercore-ltsc2022 \
+COPY --from=mongo:5.0.33-windowsservercore-ltsc2022 \
C:\\Windows\\System32\\msvcp140.dll \
C:\\Windows\\System32\\msvcp140_1.dll \
C:\\Windows\\System32\\vcruntime140.dll \
C:\\Windows\\System32\\vcruntime140_1.dll \
C:\\Windows\\System32\\
-# https://docs.mongodb.org/master/release-notes/8.0/
-ENV MONGO_VERSION 8.0.23
-# 05/06/2026, https://github.com/mongodb/mongo/tree/ccf0d81588377542f00eeecf1b1ffbc095b1eeff
+# https://docs.mongodb.org/master/release-notes/5.0/
+ENV MONGO_VERSION 5.0.33
+# 05/06/2026, https://github.com/mongodb/mongo/tree/20315d70b93ab896168da81e4ed502d859ad0511
-COPY --from=mongo:8.0.23-windowsservercore-ltsc2022 C:\\mongodb C:\\mongodb
-RUN mongod --version
+COPY --from=mongo:5.0.33-windowsservercore-ltsc2022 C:\\mongodb C:\\mongodb
+RUN mongo --version && mongod --version
VOLUME C:\\data\\db C:\\data\\configdb
diff --git a/mongo_8.0-windowsservercore-ltsc2022/Dockerfile b/mongo_5.0-windowsservercore-ltsc2022/Dockerfile
similarity index 82%
copy from mongo_8.0-windowsservercore-ltsc2022/Dockerfile
copy to mongo_5.0-windowsservercore-ltsc2022/Dockerfile
index 7c1f528..f8c18f0 100644
--- a/mongo_8.0-windowsservercore-ltsc2022/Dockerfile
+++ b/mongo_5.0-windowsservercore-ltsc2022/Dockerfile
@@ -8,12 +8,12 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2022
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
-# https://docs.mongodb.org/master/release-notes/8.0/
-ENV MONGO_VERSION 8.0.23
-# 05/06/2026, https://github.com/mongodb/mongo/tree/ccf0d81588377542f00eeecf1b1ffbc095b1eeff
+# https://docs.mongodb.org/master/release-notes/5.0/
+ENV MONGO_VERSION 5.0.33
+# 05/06/2026, https://github.com/mongodb/mongo/tree/20315d70b93ab896168da81e4ed502d859ad0511
-ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.23-signed.msi
-ENV MONGO_DOWNLOAD_SHA256=aaa3e0cde22b91fd977173344697ee84b09cd6418d5b36ca86884084e4dc5ef6
+ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.33-signed.msi
+ENV MONGO_DOWNLOAD_SHA256=2c6478f7329f231ceff3363207e42c918cbae56df35640a89538be983a5daf09
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
@@ -38,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=MiscellaneousTools,Router,ServerNoService' \
+ 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,6 +51,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
\
Write-Host 'Verifying install ...'; \
+ Write-Host ' mongo --version'; mongo --version; \
Write-Host ' mongod --version'; mongod --version; \
\
Write-Host 'Removing ...'; \
diff --git a/mongo_8.3-windowsservercore-ltsc2025/Dockerfile b/mongo_5.0-windowsservercore-ltsc2025/Dockerfile
similarity index 82%
copy from mongo_8.3-windowsservercore-ltsc2025/Dockerfile
copy to mongo_5.0-windowsservercore-ltsc2025/Dockerfile
index 88c3f5f..fa57c1e 100644
--- a/mongo_8.3-windowsservercore-ltsc2025/Dockerfile
+++ b/mongo_5.0-windowsservercore-ltsc2025/Dockerfile
@@ -8,12 +8,12 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2025
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
-# https://docs.mongodb.org/master/release-notes/8.3/
-ENV MONGO_VERSION 8.3.2
-# 05/05/2026, https://github.com/mongodb/mongo/tree/89f54eb32e217d2f7bfcad50e5919f3033bb9611
+# https://docs.mongodb.org/master/release-notes/5.0/
+ENV MONGO_VERSION 5.0.33
+# 05/06/2026, https://github.com/mongodb/mongo/tree/20315d70b93ab896168da81e4ed502d859ad0511
-ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.3.2-signed.msi
-ENV MONGO_DOWNLOAD_SHA256=f2af413beb2fa9287b804c70f109563717a6fcdefe905562ca8eeee9762485a7
+ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.33-signed.msi
+ENV MONGO_DOWNLOAD_SHA256=2c6478f7329f231ceff3363207e42c918cbae56df35640a89538be983a5daf09
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
@@ -38,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=MiscellaneousTools,Router,ServerNoService' \
+ 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,6 +51,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
\
Write-Host 'Verifying install ...'; \
+ Write-Host ' mongo --version'; mongo --version; \
Write-Host ' mongod --version'; mongod --version; \
\
Write-Host 'Removing ...'; \
diff --git a/mongo_7-jammy/Dockerfile b/mongo_6-jammy/Dockerfile
similarity index 92%
copy from mongo_7-jammy/Dockerfile
copy to mongo_6-jammy/Dockerfile
index e7c3e01..d141104 100644
--- a/mongo_7-jammy/Dockerfile
+++ b/mongo_6-jammy/Dockerfile
@@ -59,10 +59,10 @@ RUN set -eux; \
\
# download/install MongoDB PGP keys
export GNUPGHOME="$(mktemp -d)"; \
- wget -O KEYS 'https://pgp.mongodb.com/server-7.0.asc'; \
+ wget -O KEYS 'https://pgp.mongodb.com/server-6.0.asc'; \
gpg --batch --import KEYS; \
mkdir -p /etc/apt/keyrings; \
- gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /etc/apt/keyrings/mongodb.asc; \
+ gpg --batch --export --armor '39BD841E4BE5FB195A65400E6A26B1AE64C3C388' > /etc/apt/keyrings/mongodb.asc; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME" KEYS; \
\
@@ -85,12 +85,12 @@ ARG MONGO_PACKAGE=mongodb-org
ARG MONGO_REPO=repo.mongodb.org
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
-ENV MONGO_MAJOR 7.0
+ENV MONGO_MAJOR 6.0
RUN echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu jammy/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list"
-# https://docs.mongodb.org/master/release-notes/7.0/
-ENV MONGO_VERSION 7.0.34
-# 05/06/2026, https://github.com/mongodb/mongo/tree/ed9a6630253d3bc301e5ef19606704715d1e2066
+# https://docs.mongodb.org/master/release-notes/6.0/
+ENV MONGO_VERSION 6.0.28
+# 05/06/2026, https://github.com/mongodb/mongo/tree/ef888a6df901622004aeb4b7362e007b8c4299da
RUN set -x \
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
diff --git a/mongo_7-jammy/docker-entrypoint.sh b/mongo_6-jammy/docker-entrypoint.sh
similarity index 100%
copy from mongo_7-jammy/docker-entrypoint.sh
copy to mongo_6-jammy/docker-entrypoint.sh
diff --git a/mongo_8.0-nanoserver-ltsc2022/Dockerfile b/mongo_6-nanoserver-ltsc2022/Dockerfile
similarity index 72%
copy from mongo_8.0-nanoserver-ltsc2022/Dockerfile
copy to mongo_6-nanoserver-ltsc2022/Dockerfile
index f69a831..6551e74 100644
--- a/mongo_8.0-nanoserver-ltsc2022/Dockerfile
+++ b/mongo_6-nanoserver-ltsc2022/Dockerfile
@@ -14,18 +14,18 @@ RUN setx /m PATH "C:\mongodb\bin;%PATH%"
USER ContainerUser
# doing this first to share cache across versions more aggressively
-COPY --from=mongo:8.0.23-windowsservercore-ltsc2022 \
+COPY --from=mongo:6.0.28-windowsservercore-ltsc2022 \
C:\\Windows\\System32\\msvcp140.dll \
C:\\Windows\\System32\\msvcp140_1.dll \
C:\\Windows\\System32\\vcruntime140.dll \
C:\\Windows\\System32\\vcruntime140_1.dll \
C:\\Windows\\System32\\
-# https://docs.mongodb.org/master/release-notes/8.0/
-ENV MONGO_VERSION 8.0.23
-# 05/06/2026, https://github.com/mongodb/mongo/tree/ccf0d81588377542f00eeecf1b1ffbc095b1eeff
+# https://docs.mongodb.org/master/release-notes/6.0/
+ENV MONGO_VERSION 6.0.28
+# 05/06/2026, https://github.com/mongodb/mongo/tree/ef888a6df901622004aeb4b7362e007b8c4299da
-COPY --from=mongo:8.0.23-windowsservercore-ltsc2022 C:\\mongodb C:\\mongodb
+COPY --from=mongo:6.0.28-windowsservercore-ltsc2022 C:\\mongodb C:\\mongodb
RUN mongod --version
VOLUME C:\\data\\db C:\\data\\configdb
diff --git a/mongo_8.0-windowsservercore-ltsc2022/Dockerfile b/mongo_6-windowsservercore-ltsc2022/Dockerfile
similarity index 87%
copy from mongo_8.0-windowsservercore-ltsc2022/Dockerfile
copy to mongo_6-windowsservercore-ltsc2022/Dockerfile
index 7c1f528..9dae430 100644
--- a/mongo_8.0-windowsservercore-ltsc2022/Dockerfile
+++ b/mongo_6-windowsservercore-ltsc2022/Dockerfile
@@ -8,12 +8,12 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2022
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
-# https://docs.mongodb.org/master/release-notes/8.0/
-ENV MONGO_VERSION 8.0.23
-# 05/06/2026, https://github.com/mongodb/mongo/tree/ccf0d81588377542f00eeecf1b1ffbc095b1eeff
+# https://docs.mongodb.org/master/release-notes/6.0/
+ENV MONGO_VERSION 6.0.28
+# 05/06/2026, https://github.com/mongodb/mongo/tree/ef888a6df901622004aeb4b7362e007b8c4299da
-ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.23-signed.msi
-ENV MONGO_DOWNLOAD_SHA256=aaa3e0cde22b91fd977173344697ee84b09cd6418d5b36ca86884084e4dc5ef6
+ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.28-signed.msi
+ENV MONGO_DOWNLOAD_SHA256=49e24243affae70b9c80112d0552d14454f5db1219ed2f50abd02d9a81ce95f8
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
diff --git a/mongo_8.3-windowsservercore-ltsc2025/Dockerfile b/mongo_6-windowsservercore-ltsc2025/Dockerfile
similarity index 87%
copy from mongo_8.3-windowsservercore-ltsc2025/Dockerfile
copy to mongo_6-windowsservercore-ltsc2025/Dockerfile
index 88c3f5f..2c349ea 100644
--- a/mongo_8.3-windowsservercore-ltsc2025/Dockerfile
+++ b/mongo_6-windowsservercore-ltsc2025/Dockerfile
@@ -8,12 +8,12 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2025
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
-# https://docs.mongodb.org/master/release-notes/8.3/
-ENV MONGO_VERSION 8.3.2
-# 05/05/2026, https://github.com/mongodb/mongo/tree/89f54eb32e217d2f7bfcad50e5919f3033bb9611
+# https://docs.mongodb.org/master/release-notes/6.0/
+ENV MONGO_VERSION 6.0.28
+# 05/06/2026, https://github.com/mongodb/mongo/tree/ef888a6df901622004aeb4b7362e007b8c4299da
-ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.3.2-signed.msi
-ENV MONGO_DOWNLOAD_SHA256=f2af413beb2fa9287b804c70f109563717a6fcdefe905562ca8eeee9762485a7
+ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.28-signed.msi
+ENV MONGO_DOWNLOAD_SHA256=49e24243affae70b9c80112d0552d14454f5db1219ed2f50abd02d9a81ce95f8
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \Relevant Maintainers: |
Member
Author
As noted in the OP, this CI failure is expected and a temporary state to get out EOL releases (where an EOL base image is probably the lesser of the two evils). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CVE-2026-8053(https://jira.mongodb.org/browse/SERVER-126021)Similar to #20567, this includes 5.0 which is on the EOL Ubuntu 20.04 (Focal) release for a one-off rebuild -- once the builds are done and published, these will be removed again (with 6.0) as they're all extremely end-of-life and should not be used.
Changes: