Namespace
library
Image / Tag
mongo:7.0.40
Content Digest
sha256:b6421fd6d1c5ded6377b397d8983e2f82e2100dc5123332dcfda2065a472be5b
Details
Created

2026-08-18 01:19:58 UTC

Size

282 MB

Content Digest
Labels
  • org.opencontainers.image.version
    22.04

Environment
GOSU_VERSION

1.19

HOME

/data/db

JSYAML_CHECKSUM

662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

JSYAML_VERSION

3.13.1

MONGO_MAJOR

7.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

7.0.40

PATH

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


Layers

[#000] sha256:d544298cabd50e7c86bfef1e52b67f01db6b3a57bfecfe37a851873dee83e52a - 10.05% (28.4 MB)

[#001] sha256:6bcb0cd9f68c0e60a91406c3ef38039e2175646cb2db51f6454f7bba21c2eac3 - 0.0% (1.74 KB)

[#002] sha256:164558a2a8faea6b2f93372b0623963809ec4f71ed7c68fd85d8c1f529e29051 - 0.5% (1.4 MB)

[#003] sha256:77214491514e3e176131ad001929ddf7bfbdf1c59722cab682006b132e377d9c - 0.3% (877 KB)

[#004] sha256:9dad1a8753e0f46099828451a294acb449729e1f154fd50eeb38d09eb57b0177 - 0.0% (116 Bytes)

[#005] sha256:586ba587042d5c45d2f7aa95909801bead5761785edd62c3bc44aaeb020870dc - 0.0% (266 Bytes)

[#006] sha256:4afa172ff42c2de878a0a69293ed91cd0a6b5859c0aaf8967210886ca34c76f7 - 89.14% (252 MB)

[#007] sha256:ad1d6026847d3cb542cb478f7eaba12a085314c1acbae1a137a3b8253a39cb76 - 0.0% (4.89 KB)


History
2026-08-10 17:38:09 UTC

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

2026-08-10 17:38:09 UTC

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

2026-08-10 17:38:09 UTC

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

2026-08-10 17:38:12 UTC

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

2026-08-10 17:38:12 UTC

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

2026-08-18 01:19:15 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 01:19:24 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 01:19:35 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

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

ENV JSYAML_VERSION=3.13.1

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

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2026-08-18 01:19:35 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-7.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /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 01:19:36 UTC (buildkit.dockerfile.v0)

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

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

ARG MONGO_PACKAGE=mongodb-org

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

ARG MONGO_REPO=repo.mongodb.org

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

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

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

ENV MONGO_MAJOR=7.0

2026-08-18 01:19:36 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 jammy/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list" # buildkit

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

ENV MONGO_VERSION=7.0.40

2026-08-18 01:19:58 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 01:19:58 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

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

ENV HOME=/data/db

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

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

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

EXPOSE map[27017/tcp:{}]

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

CMD ["mongod"]

Details
Created

2026-08-12 17:50:40 UTC

Size

2.86 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

1adfb2c433f6215cfe38ce871b39d6ba2bd3d6d9159b6b251c647a694fd113c7

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.40


Layers

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

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

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

[#003] sha256:ce3cfb1967751bd0d24bcf4da1e49923ca7e1471c02cd9f38cdc015048a3e84e - 0.0% (1.29 KB)

[#004] sha256:fbaa4e7d5472f2d2fa17694eb79adfe413e06285141775b48912d6b305249e70 - 0.0% (1.23 KB)

[#005] sha256:1a43a758d25412f09f9b2566c366c96ab3fa7cc5b5cf00ce02fbb1d419055874 - 0.0% (1.26 KB)

[#006] sha256:3a746cb395aaa14972b03dc2ed9fb4fd2bdaedb2ad794ed30b17c590a7420b13 - 20.4% (597 MB)

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

[#008] sha256:e6494ac04728ca1ae430513815d0c6102f42268e0fddca65f52c3e3694887c1b - 0.0% (1.26 KB)

[#009] sha256:7beb1fd23821ca86e733b6c4078ee4c867e08cda3a32970bab3548573b2329e3 - 0.0% (1.23 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:46:48 UTC

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

2026-08-12 17:49:05 UTC

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

2026-08-12 17:49:06 UTC

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

2026-08-12 17:49:06 UTC

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

2026-08-12 17:50:38 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:50:39 UTC

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

2026-08-12 17:50:39 UTC

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

2026-08-12 17:50:40 UTC

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

Details
Created

2026-08-12 17:50:23 UTC

Size

2.62 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

1adfb2c433f6215cfe38ce871b39d6ba2bd3d6d9159b6b251c647a694fd113c7

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.40


Layers

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

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

[#002] sha256:b6663eb7183e1ec85dde1e1417037a290a09bf063d3d5deea1ba9d134d7c7d44 - 0.0% (1.29 KB)

[#003] sha256:b9f2f132716487cfbd67422406a1a3d3411baa56b5c9f8d30b09d539dedab73b - 0.0% (1.29 KB)

[#004] sha256:c23b0cb1564076c54f685439d7cdd9ebd02c721ebbb284fcce57b576ed4094f1 - 0.0% (1.27 KB)

[#005] sha256:3d0a613a252fa45362eb7c442bd34745c12c4f416d89a39bb133707d77bfd2b3 - 0.0% (1.27 KB)

[#006] sha256:b65f80357647f76f82b9bd1c8eab9d5ff205a781b665e0842236bd0debec95c4 - 22.27% (597 MB)

[#007] sha256:4d2d855813a8b324f9b87829c1771871e80df1f501fb883442dcb4d6c8837b0b - 0.0% (1.29 KB)

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

[#009] sha256:5f3cffe0c4cc18e6ee5f4b19bac18d4219974ea6ea8508583c1aff940ec0c77c - 0.0% (1.26 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:12 UTC

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

2026-08-12 17:49:12 UTC

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

2026-08-12 17:49:13 UTC

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

2026-08-12 17:49:14 UTC

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

2026-08-12 17:50:19 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:50:22 UTC

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

2026-08-12 17:50:23 UTC

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

2026-08-12 17:50:23 UTC

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

Details
Created

2026-08-18 01:19:40 UTC

Size

270 MB

Content Digest
Labels
  • org.opencontainers.image.version
    22.04

Environment
GOSU_VERSION

1.19

HOME

/data/db

JSYAML_CHECKSUM

662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

JSYAML_VERSION

3.13.1

MONGO_MAJOR

7.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

7.0.40

PATH

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


Layers

[#000] sha256:231032373bb3b10375f5940876c5c9a4a630f4e007e3aee895f8e1687b00295e - 9.77% (26.3 MB)

[#001] sha256:e7d5e3b111ef22b944758abf44ec9970783276c94954d9e7d41f82a2647d31da - 0.0% (1.74 KB)

[#002] sha256:41f3136204348bb17096a498d7f15d5f7aa358a498615b3b320d28ec404fec8b - 0.51% (1.37 MB)

[#003] sha256:c3924d1c64c951f591b6eba98c72f168cd2ff68eba65282c2c52fd75f73a69e7 - 0.3% (831 KB)

[#004] sha256:011d20a8e5bb49970cac1b534f5e75287b36dfccacb60bf5836f564351a8ff36 - 0.0% (116 Bytes)

[#005] sha256:6304a02d8c2e48433f0a0cc2cc1f2796a8dc350b3269ec1c4018d3ade38c8e0c - 0.0% (264 Bytes)

[#006] sha256:4249f634469594b3e6cc1bf204a5dd4fa82746bd1ece96f8138df9581d0155e2 - 89.42% (241 MB)

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


History
2026-08-10 17:38:35 UTC

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

2026-08-10 17:38:35 UTC

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

2026-08-10 17:38:35 UTC

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

2026-08-10 17:38:37 UTC

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

2026-08-10 17:38:38 UTC

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

2026-08-18 01:18:55 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 01:19:03 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 01:19:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

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

ENV JSYAML_VERSION=3.13.1

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

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2026-08-18 01:19: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-7.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /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 01:19:16 UTC (buildkit.dockerfile.v0)

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

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

ARG MONGO_PACKAGE=mongodb-org

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

ARG MONGO_REPO=repo.mongodb.org

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

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

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

ENV MONGO_MAJOR=7.0

2026-08-18 01:19: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 jammy/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list" # buildkit

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

ENV MONGO_VERSION=7.0.40

2026-08-18 01:19:40 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 01:19:40 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

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

ENV HOME=/data/db

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

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

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

EXPOSE map[27017/tcp:{}]

2026-08-18 01:19:40 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.

Delete