Tag

library/mongo:latest
Content Digest: sha256:5211c51171f57ae60842b11664bb244628971b3d35325762a97888337b9bb0db
Manifests
Details
Content Digest

sha256:41c3b7abb48e62c1ee51d4b67eda94419655ca81b01fec9092015e01b14587ed

Created

2026-08-18 19:24:32 UTC

Size

286 MB


Labels
  • org.opencontainers.image.version
    24.04

Environment
GLIBC_TUNABLES

glibc.pthread.rseq=0

GOSU_VERSION

1.19

HOME

/data/db

JSYAML_CHECKSUM

662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

JSYAML_VERSION

3.13.1

MONGO_MAJOR

8.3

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

8.3.8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Layers

[#000] sha256:0926a8eb0e608a5c6888d1cd5594184bdf3ed3aa311dba5b42a547caefdc6f2e - 9.92% (28.4 MB)

[#001] sha256:3febdbac1f6a750aab33a14fa63efae0c0cc2f8979d8aa7f795a4adb8c24a92e - 0.0% (1.19 KB)

[#002] sha256:8ec75ab79e1ee36129cf8a514658a412c5235dc9c3c4bdd3cddbc251552b4df7 - 0.49% (1.4 MB)

[#003] sha256:2ddbe66c4473fae1a20d4b3a5405f85af75408009b0380720d2c76de65968434 - 0.31% (912 KB)

[#004] sha256:1950433b02a8bd657e97e927e7d4d7b0fccbab45e300f3c942e41f2f5827d7e5 - 0.0% (116 Bytes)

[#005] sha256:65a685c39abdd7dabb48029da245112906fc81da68ff143975341efb3b802ecd - 0.0% (263 Bytes)

[#006] sha256:d62574ba834398f2a6184896423017dcc0b97a7dff4b4d401a4194654bbf8c16 - 89.27% (255 MB)

[#007] sha256:eab79789b661a768b0622a7d1eb383e1d159d890ac78077d682bb13b302e6fa6 - 0.0% (4.88 KB)


History
2026-08-17 13:09:48 UTC

/bin/sh -c #(nop) ARG RELEASE

2026-08-17 13:09:48 UTC

/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH

2026-08-17 13:09:48 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.version=24.04

2026-08-17 13:09:50 UTC

/bin/sh -c #(nop) ADD file:cb9335ce6f27399c2b17787739d6675502767c53e0335ded2a5f0d003d996650 in /

2026-08-17 13:09:51 UTC

/bin/sh -c #(nop) CMD ["/bin/bash"]

2026-08-18 19:24:01 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd --gid 999 --system mongodb; useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; mkdir -p /data/db /data/configdb; chown -R mongodb:mongodb /data/db /data/configdb # buildkit

2026-08-18 19:24:06 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates jq numactl procps ; rm -rf /var/lib/apt/lists/* # buildkit

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg wget ; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; mkdir -p /opt/js-yaml/; wget -O /opt/js-yaml/js-yaml.tgz https://registry.npmjs.org/js-yaml/-/js-yaml-${JSYAML_VERSION}.tgz; echo "$JSYAML_CHECKSUM */opt/js-yaml/js-yaml.tgz" | sha256sum -c -; tar -xz --strip-components=1 -f /opt/js-yaml/js-yaml.tgz -C /opt/js-yaml package/dist/js-yaml.js package/package.json; rm /opt/js-yaml/js-yaml.tgz; ln -s /opt/js-yaml/dist/js-yaml.js /js-yaml.js; export GNUPGHOME="$(mktemp -d)"; wget -O KEYS 'https://pgp.mongodb.com/server-8.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '4B0752C1BCA238C0B4EE14DC41DE058A4E7DCA05' > /etc/apt/keyrings/mongodb.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" KEYS; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=8.3

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu noble/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list" # buildkit

2026-08-18 19:24:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=8.3.8

2026-08-18 19:24:31 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ${MONGO_PACKAGE}=$MONGO_VERSION ${MONGO_PACKAGE}-server=$MONGO_VERSION ${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 # buildkit

2026-08-18 19:24:31 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2026-08-18 19:24:31 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2026-08-18 19:24:31 UTC (buildkit.dockerfile.v0)

ENV GLIBC_TUNABLES=glibc.pthread.rseq=0

2026-08-18 19:24:32 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2026-08-18 19:24:32 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-08-18 19:24:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2026-08-18 19:24:32 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Content Digest

sha256:5694eae8768813b6cdfb83534a3c32143921c48fe89e8dd2461ab1cafc2732b1

Created

2026-08-12 17:49:28 UTC

Size

3.13 GB


Environment
MONGO_DOWNLOAD_SHA256

d938c6dbc75f9ccdd0880ef91612364ba5f3c08f3640b4ee28a2cd95d4c99861

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.3.8-signed.msi

MONGO_VERSION

8.3.8


Layers

[#000] sha256:0938cf51b672b81c9804d1d5f0c57031c931f41b279270e84820c63642d6a3bd - 45.29% (1.42 GB)

[#001] sha256:0e5abeeefbb7b11eb6332573ca632d3d8807213461f1b97f3cfee8899a29583f - 27.29% (875 MB)

[#002] sha256:c1221989eb5d8b877bf2fc50793424c4beebfe11603ac4548c5402f5befbaa1a - 0.0% (1.25 KB)

[#003] sha256:e92275372643da6c48c0e5e54636979a3d28d186a921a8ddb6ba1fed1c7098d5 - 0.0% (1.27 KB)

[#004] sha256:a66b140625d1017a1a770446a0fd4c29f7d003a49258b7165fcfde48b22f7801 - 0.0% (1.25 KB)

[#005] sha256:60f99c10c90a20ca2bef86180af2c40ec6a154e660df5bbf14f26aa0d03578b9 - 0.0% (1.26 KB)

[#006] sha256:93cf5d6e3696e3ba6b8192a9efd8096be191f07ac3e62059daa0282cad864182 - 27.43% (880 MB)

[#007] sha256:a13b8f9fa2b7778e95e27a4c2f89c367c0467775dadfc295f275e7992a98b69f - 0.0% (1.27 KB)

[#008] sha256:efb151980290ebdb13b5bf8fe536f57de5320d30ef136559237f477f772dbc83 - 0.0% (1.27 KB)

[#009] sha256:edacc3baa51bd14fed8c9f3f9f36b289ac92de20a89613a2e8b69abe2b488221 - 0.0% (1.25 KB)


History
2026-01-11 09:57:36 UTC

Apply image 10.0.26100.32230

2026-08-09 09:10:21 UTC

Install update 10.0.26100.33296

2026-08-12 17:47:26 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2026-08-12 17:47:26 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=8.3.8

2026-08-12 17:47:26 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.3.8-signed.msi

2026-08-12 17:47:27 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=d938c6dbc75f9ccdd0880ef91612364ba5f3c08f3640b4ee28a2cd95d4c99861

2026-08-12 17:49:27 UTC

powershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2026-08-12 17:49:27 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2026-08-12 17:49:28 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2026-08-12 17:49:28 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Details
Content Digest

sha256:f02b9490bbfe14eac13e515821a9be6e2d5ad08c3adc4c068eaf43eb26ef5cfc

Created

2026-08-12 17:51:02 UTC

Size

2.89 GB


Environment
MONGO_DOWNLOAD_SHA256

d938c6dbc75f9ccdd0880ef91612364ba5f3c08f3640b4ee28a2cd95d4c99861

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.3.8-signed.msi

MONGO_VERSION

8.3.8


Layers

[#000] sha256:3cc21a1b754848d23f00aa65cb94ec34c9a5dc6028b3aada42039c824738d02f - 47.93% (1.39 GB)

[#001] sha256:16a37dc2b2d3c6043d57b7ca0e32bc7d3fe761174f2d192d1aabe93b7895c9b7 - 22.37% (663 MB)

[#002] sha256:a164a094cd982b14c21655e30366c21a02af8c98904e7a38667854a428d15596 - 0.0% (1.26 KB)

[#003] sha256:6c3c6b491db1685d7853b3b6b4669ef75643c077f4e5601d3ce2e7d7cb2642d8 - 0.0% (1.3 KB)

[#004] sha256:703bfef82fdac6536a3b39510e7afb64992fdce3af7e4352ff642e3a8286a1d4 - 0.0% (1.26 KB)

[#005] sha256:c313b2eea779f9af4120512ed64e9f45e160b9921c7e9beeba16a0a1e05a59bb - 0.0% (1.29 KB)

[#006] sha256:52c8da35baf948a5f6e01cf3864782165c1d64dbe5de4ecbf722cef715b46df2 - 29.7% (880 MB)

[#007] sha256:a1f167c9cd1a3ec6b51d75409d80ed8eeef236faacb399ce1d3f6d6d7781e7a7 - 0.0% (1.26 KB)

[#008] sha256:6af0c2f92c121e57e7ca277aa3a88cfdaef527c73c0cbe6f50ed9fc8bbfab63e - 0.0% (1.31 KB)

[#009] sha256:09d10e3e7ed6d6644aad7f31f90374cbc143ec2cd26816a83698fb6c0415676a - 0.0% (1.29 KB)


History
2025-10-09 07:51:18 UTC

Apply image 10.0.20348.4294

2026-08-09 04:19:26 UTC

Install update 10.0.20348.5499

2026-08-12 17:49:09 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2026-08-12 17:49:09 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=8.3.8

2026-08-12 17:49:10 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.3.8-signed.msi

2026-08-12 17:49:11 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=d938c6dbc75f9ccdd0880ef91612364ba5f3c08f3640b4ee28a2cd95d4c99861

2026-08-12 17:51:01 UTC

powershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2026-08-12 17:51:01 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2026-08-12 17:51:02 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2026-08-12 17:51:02 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Details
Content Digest

sha256:d50db15ba4794a2940fc2173104abf0540dac953de03a0d66be1a1361ddce80c

Created

2026-08-18 19:24:37 UTC

Size

274 MB


Labels
  • org.opencontainers.image.version
    24.04

Environment
GLIBC_TUNABLES

glibc.pthread.rseq=0

GOSU_VERSION

1.19

HOME

/data/db

JSYAML_CHECKSUM

662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

JSYAML_VERSION

3.13.1

MONGO_MAJOR

8.3

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

8.3.8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Layers

[#000] sha256:0b613318ea879878918380aa3aeb220dfe824e311b83bc955cb8a1d4319650ab - 10.07% (27.5 MB)

[#001] sha256:fdc3bf2a9ed4fb5c4a38e0f82a6c7448998cf643aef3b7249538e6da3c4951c6 - 0.0% (1.19 KB)

[#002] sha256:ab9045767befafe1fda95d5d284f288c003a8b57416d7f7966b5a08e20d2c2d3 - 0.51% (1.38 MB)

[#003] sha256:b7cb54ec56a8e3332b323a457784e600b4c78a4a40d5141a1d013ea8a2f3d65a - 0.31% (866 KB)

[#004] sha256:23e45dd0ad03019e1941c20e02f98a2b88624f3154c5e12e0f4bf7649b4ce29a - 0.0% (116 Bytes)

[#005] sha256:2f2f2b65659f8d1fdc451ae136faa7beb22b7c1d6ff9551279bfecabebf1485c - 0.0% (263 Bytes)

[#006] sha256:47332143e42fab1ac22e13bf68ee340c4003d563d42b789a6615558fb1587b26 - 89.12% (244 MB)

[#007] sha256:b860120eebe076977e1899600ec5cd1201b3a1a260f3c1f6fee35cb67f92e581 - 0.0% (4.88 KB)


History
2026-08-17 13:11:31 UTC

/bin/sh -c #(nop) ARG RELEASE

2026-08-17 13:11:31 UTC

/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH

2026-08-17 13:11:31 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.version=24.04

2026-08-17 13:11:34 UTC

/bin/sh -c #(nop) ADD file:0387b3d029de8fa08641ccfaa44c6a4ad07b93035420d53b49783ea27527d153 in /

2026-08-17 13:11:34 UTC

/bin/sh -c #(nop) CMD ["/bin/bash"]

2026-08-18 19:24:05 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd --gid 999 --system mongodb; useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; mkdir -p /data/db /data/configdb; chown -R mongodb:mongodb /data/db /data/configdb # buildkit

2026-08-18 19:24:11 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates jq numactl procps ; rm -rf /var/lib/apt/lists/* # buildkit

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg wget ; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; mkdir -p /opt/js-yaml/; wget -O /opt/js-yaml/js-yaml.tgz https://registry.npmjs.org/js-yaml/-/js-yaml-${JSYAML_VERSION}.tgz; echo "$JSYAML_CHECKSUM */opt/js-yaml/js-yaml.tgz" | sha256sum -c -; tar -xz --strip-components=1 -f /opt/js-yaml/js-yaml.tgz -C /opt/js-yaml package/dist/js-yaml.js package/package.json; rm /opt/js-yaml/js-yaml.tgz; ln -s /opt/js-yaml/dist/js-yaml.js /js-yaml.js; export GNUPGHOME="$(mktemp -d)"; wget -O KEYS 'https://pgp.mongodb.com/server-8.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '4B0752C1BCA238C0B4EE14DC41DE058A4E7DCA05' > /etc/apt/keyrings/mongodb.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" KEYS; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=8.3

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu noble/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list" # buildkit

2026-08-18 19:24:21 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=8.3.8

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ${MONGO_PACKAGE}=$MONGO_VERSION ${MONGO_PACKAGE}-server=$MONGO_VERSION ${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 # buildkit

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

ENV GLIBC_TUNABLES=glibc.pthread.rseq=0

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2026-08-18 19:24:37 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.