Tag

library/mongo:7.0.45
Content Digest: sha256:8bb4442761a63a8dda452744082cdac9644b429807eb977b42324a63cef59ca4
Manifests
Details
Content Digest

sha256:bf46c3fd4f186a3569a6c8d180ee6f55e46cc81e98c0cadaee2f56718c84979f

Created

2026-10-26 23:26:05 UTC

Size

283 MB


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.45

PATH

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


Layers

[#000] sha256:0626d3cc316c9fea3d4891e2ec19b8f371fe22ffb915622f6072a2ee2ca9017f - 10.01% (28.4 MB)

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

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

[#003] sha256:738f9ba941bae264f43d2e854b0aef4641b13b372e0c3133d915982bd3692c24 - 0.3% (878 KB)

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

[#005] sha256:5af9d50835c9ce679d1af2960f52c68ef7d9900f38140226a001d07ffe8b81a1 - 0.0% (266 Bytes)

[#006] sha256:71bc30e0632ac41c4117e529021989d7a6dc7cd59d74b002152b9ffb6e73d4ff - 89.19% (253 MB)

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


History
2026-10-25 20:10:42 UTC

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

2026-10-25 20:10:42 UTC

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

2026-10-25 20:10:42 UTC

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

2026-10-25 20:10:44 UTC

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

2026-10-25 20:10:44 UTC

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

2026-10-26 23:25:22 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-10-26 23:25:30 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-10-26 23:25:43 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-10-26 23:25:43 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2026-10-26 23:25:43 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2026-10-26 23:25:43 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-10-26 23:25:44 UTC (buildkit.dockerfile.v0)

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

2026-10-26 23:25:44 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2026-10-26 23:25:44 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2026-10-26 23:25:44 UTC (buildkit.dockerfile.v0)

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

2026-10-26 23:25:44 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2026-10-26 23:25:44 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-10-26 23:25:44 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.45

2026-10-26 23:26:05 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-10-26 23:26:05 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2026-10-26 23:26:05 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2026-10-26 23:26:05 UTC (buildkit.dockerfile.v0)

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

2026-10-26 23:26:05 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-10-26 23:26:05 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2026-10-26 23:26:05 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Content Digest

sha256:7e42273855348057221abf75db2beecb8099a283ed87e6b126913487b38cc1f5

Created

2026-10-27 18:02:00 UTC

Size

2.81 GB


Environment
MONGO_DOWNLOAD_SHA256

c523c13eec4bfe0900f6d0a4db9f7033276bafeda6786f388297c59f13eaee63

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.45


Layers

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

[#001] sha256:64f431fb112b4d6aec186615d6db738217b1c9e607dc5d0addbeaffcbea73f51 - 28.8% (829 MB)

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

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

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

[#005] sha256:082ea959f92c1f120717cebb8967d2a388d04d26951d48b25f42163396fd5d29 - 0.0% (1.25 KB)

[#006] sha256:d93bb0f363a54d1f8c1c1266398d4da96b8e6c9a1ded5bc0fd72f5def4c9a4ab - 20.73% (596 MB)

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

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

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


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

Apply image 10.0.26100.32230

2026-10-24 23:52:44 UTC

Install update 10.0.26100.33674

2026-10-27 17:58:12 UTC

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

2026-10-27 18:00:22 UTC

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

2026-10-27 18:00:23 UTC

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

2026-10-27 18:00:23 UTC

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

2026-10-27 18:01:58 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-10-27 18:01:59 UTC

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

2026-10-27 18:02:00 UTC

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

2026-10-27 18:02:00 UTC

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

Details
Content Digest

sha256:6a321bb292020a440b1365d33e18866c8af850bfdb88a37ffa4964510c8d25f8

Created

2026-10-27 18:09:06 UTC

Size

2.66 GB


Environment
MONGO_DOWNLOAD_SHA256

c523c13eec4bfe0900f6d0a4db9f7033276bafeda6786f388297c59f13eaee63

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.45


Layers

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

[#001] sha256:a9fea553d6997affb11590d988a7f41a1ead2d9cc196f5ce609bcdfe88f06dd8 - 25.87% (704 MB)

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

[#003] sha256:8d6e33b504da74026ad745e9e275cc846f8c9a96e787f49bfde7d374166db485 - 0.0% (1.3 KB)

[#004] sha256:1bf9d723baeaf58149caada54595ef7f055d27aa2d3746482626a126a90434f3 - 0.0% (1.3 KB)

[#005] sha256:4cc79f3aa12e3f6398a02a88d67501eadd73794e07f7ae337dcb55020a86fe11 - 0.0% (1.3 KB)

[#006] sha256:c7c2a1880548a8fbd7a822216706274090cf4447624add15eb20376cf461d751 - 21.93% (596 MB)

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

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

[#009] sha256:a586b6de2ba3a9de6f4b7472c82968837ad977abf17fcbf3903946ea93771075 - 0.0% (1.31 KB)


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

Apply image 10.0.20348.4294

2026-10-25 10:02:58 UTC

Install update 10.0.20348.5773

2026-10-27 18:03:45 UTC

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

2026-10-27 18:07:43 UTC

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

2026-10-27 18:07:43 UTC

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

2026-10-27 18:07:44 UTC

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

2026-10-27 18:09:03 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-10-27 18:09:04 UTC

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

2026-10-27 18:09:05 UTC

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

2026-10-27 18:09:06 UTC

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

Details
Content Digest

sha256:813a818390698c83841dc2ac1739d681ced8504fa03427d3072ed10adcf95059

Created

2026-10-26 23:30:42 UTC

Size

271 MB


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.45

PATH

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


Layers

[#000] sha256:771eed73ee82c7916df197c0fd7ef3ac4eedcb9a6318b10d2652948c6c4ca08f - 9.75% (26.4 MB)

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

[#002] sha256:6cf8446071d2f6497144888227d0845857988afe40c91f3d76f04c7bbbd85c65 - 0.51% (1.37 MB)

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

[#004] sha256:468debf69ee9793e7b8fd67d10d4ce9e5094a279d34e85ff8f626c6ac03802d7 - 0.0% (116 Bytes)

[#005] sha256:17fe8025a9eb04f46d3b5af8d9a421657f9b159825677aeb2543563042c45b24 - 0.0% (264 Bytes)

[#006] sha256:bb371a8e9e66f1e0bca520c1f04dcf2e2040dba838cef498c64cdbad1feb3505 - 89.44% (242 MB)

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


History
2026-10-25 20:10:50 UTC

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

2026-10-25 20:10:50 UTC

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

2026-10-25 20:10:50 UTC

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

2026-10-25 20:10:52 UTC

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

2026-10-25 20:10:53 UTC

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

2026-10-26 23:30:00 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-10-26 23:30:08 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-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2026-10-26 23:30: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-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-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

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

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

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

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2026-10-26 23:30: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 jammy/$MONGO_PACKAGE/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/$MONGO_PACKAGE.list" # buildkit

2026-10-26 23:30:21 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.45

2026-10-26 23:30:42 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-10-26 23:30:42 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2026-10-26 23:30:42 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2026-10-26 23:30:42 UTC (buildkit.dockerfile.v0)

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

2026-10-26 23:30:42 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2026-10-26 23:30:42 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2026-10-26 23:30:42 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.