Namespace
library
Image / Tag
mongo:7.0.25
Content Digest
sha256:82db6c6c8103eee46ca820c190742b7c280d02d6f993903a603cec9d56be374b
Details
Created

2025-11-13 23:31:38 UTC

Size

267 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • 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.25

PATH

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


Layers

[#000] sha256:7e49dc6156b0b532730614d83a65ae5e7ce61e966b0498703d333b4d03505e4f - 10.56% (28.2 MB)

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

[#002] sha256:8bc0577f0c5ac79e75e27bdcbae088ee808a14f5177c64faa693c0d450d88cfe - 0.54% (1.44 MB)

[#003] sha256:78bb42539a6eecc3312b4dff7426141ad0800c712ad8f7dfcd6601b89cdbc300 - 0.32% (877 KB)

[#004] sha256:03a2f7dfc9d56fd0d33ab3003de2002af9ef9a4cf1938b023f29e426a7adddef - 0.0% (114 Bytes)

[#005] sha256:3370660e379324a2ef299dee8cf9cd94b20cd745f41a300900e22e3ca082fe81 - 0.0% (263 Bytes)

[#006] sha256:423feecba649506af1ed9d63501b66ea6b446b1dbbe9afc9ae734e9d582dd2fd - 88.58% (236 MB)

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


History
2025-10-13 17:23:18 UTC

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

2025-10-13 17:23:18 UTC

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

2025-10-13 17:23:18 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu

2025-10-13 17:23:18 UTC

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

2025-10-13 17:23:20 UTC

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

2025-10-13 17:23:20 UTC

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

2025-11-13 23:30:56 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

2025-11-13 23:31:05 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

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2025-11-13 23:31:17 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

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

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

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

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

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2025-11-13 23:31:17 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%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2025-11-13 23:31:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.25

2025-11-13 23:31:38 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

2025-11-13 23:31:38 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2025-11-13 23:31:38 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2025-11-13 23:31:38 UTC (buildkit.dockerfile.v0)

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

2025-11-13 23:31:38 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-11-13 23:31:38 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2025-11-13 23:31:38 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2025-11-11 19:27:57 UTC

Size

3.59 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

a6e4b64f4130bd82642eafc83a3644ebb7425c0c26ce7d445ed95da4a9767613

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.25


Layers

[#000] sha256:1317fe15185685e9cd27f7542cd96f4847343401288a8b6798273a4ac60844eb - 57.49% (2.06 GB)

[#001] sha256:a84ef3b04f81727036fe8b401efc70b6979844e2b78bdf09aa1b68b7ef4edf63 - 26.47% (973 MB)

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

[#003] sha256:b98b25f94b6fa01c09e3e767a182186d889df36a8273ad4502a25f4e615e8300 - 0.0% (1.32 KB)

[#004] sha256:b39e7181d908e38ff6399f1cf657b1e516958be86e6d295a06ac4643ab6971ba - 0.0% (1.29 KB)

[#005] sha256:98a09173d29a80a7bfbbc4829e0fa9381ca30176ec8ed8b0a206ee2bae81400e - 0.0% (1.28 KB)

[#006] sha256:b8d3723e1907148fde2241bf5fd0eefda2066cc62f688220e96ad065afee5112 - 16.04% (590 MB)

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

[#008] sha256:eaabaffef7e532d34740f246a84d508e035bc3777812686576be6d2df6c0d848 - 0.0% (1.3 KB)

[#009] sha256:f58ae7ed7f2ce0ca11c2f6c7c998d52e521006029226149db7d468c71ce37477 - 0.0% (1.28 KB)


History
2024-12-08 22:41:37 UTC

Apply image 10.0.26100.2605

2025-11-09 10:25:55 UTC

Install update 10.0.26100.7171

2025-11-11 19:26:24 UTC

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

2025-11-11 19:26:24 UTC

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

2025-11-11 19:26:25 UTC

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

2025-11-11 19:26:25 UTC

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

2025-11-11 19:27:55 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.';

2025-11-11 19:27:56 UTC

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

2025-11-11 19:27:56 UTC

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

2025-11-11 19:27:57 UTC

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

Details
Created

2025-11-11 19:28:02 UTC

Size

2.22 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

a6e4b64f4130bd82642eafc83a3644ebb7425c0c26ce7d445ed95da4a9767613

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.25


Layers

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

[#001] sha256:3a26269efcb0f33c920b21f98d305592e7310bbe548291a16043e48a0c1feba5 - 11.76% (268 MB)

[#002] sha256:70aabc77fca6e58c9fad9b2f632ef6fdeae222e4bb5e10c680ce09770b8791bb - 0.0% (1.28 KB)

[#003] sha256:da79423af8449df6f592ef002f73d97689e6f91d439c5a475301fd38ac2dae86 - 0.0% (1.26 KB)

[#004] sha256:7b0254bfe3c58bcf729fbd1efdeabc1c102f3129d43b81580271c0eaf0c7b2e6 - 0.0% (1.28 KB)

[#005] sha256:ca0776689eb750f9c1001df4e7c4f9fe99feca92eaf96d4705e128b44d414023 - 0.0% (1.28 KB)

[#006] sha256:c150dade0209aaef5cfd880c83369b341562ece428343dd915ba87919b56e3aa - 25.89% (590 MB)

[#007] sha256:313991a79ca74bb1765447ff6c77ac665934f1c35dd1414b91435c5cc8cfb25b - 0.0% (1.28 KB)

[#008] sha256:15122a42c65d0d11c03296f7a3ac799ef70ada6754e90fe32d20c0efe141d8be - 0.0% (1.25 KB)

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


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

Apply image 10.0.20348.4294

2025-11-05 05:39:13 UTC

Install update 10.0.20348.4405

2025-11-11 19:24:06 UTC

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

2025-11-11 19:26:31 UTC

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

2025-11-11 19:26:31 UTC

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

2025-11-11 19:26:32 UTC

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

2025-11-11 19:27:59 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.';

2025-11-11 19:28:00 UTC

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

2025-11-11 19:28:01 UTC

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

2025-11-11 19:28:02 UTC

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

Details
Created

2025-11-13 23:31:02 UTC

Size

255 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • 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.25

PATH

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


Layers

[#000] sha256:0ec3d86457676c7af7a3b6d29565e0e8b30ed98afe5d606e00e565101f812623 - 10.25% (26.1 MB)

[#001] sha256:941627ca1bf46d45e6ac4eabf60f7d339ab9de264fcaf29a1d59e1d81e002a89 - 0.0% (1.75 KB)

[#002] sha256:49a2afca6323317f0195e21065525b277f638b62bd351def2b3c50c6ca8cb019 - 0.56% (1.41 MB)

[#003] sha256:5e3ea6d00797e54807253c64f0be47d9115e0efe1d8525a2fb5d82becb1d11a0 - 0.32% (831 KB)

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

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

[#006] sha256:2c8892c2f68a49f7f6809a1dc39efef0957eb1c5ea5be7214710b6cfc0f8b182 - 88.87% (226 MB)

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


History
2025-10-13 17:25:16 UTC

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

2025-10-13 17:25:16 UTC

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

2025-10-13 17:25:16 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu

2025-10-13 17:25:16 UTC

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

2025-10-13 17:25:18 UTC

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

2025-10-13 17:25:18 UTC

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

2025-11-13 23:30:19 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

2025-11-13 23:30:28 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

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2025-11-13 23:30:41 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

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

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

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

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

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2025-11-13 23:30:41 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%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2025-11-13 23:30:41 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.25

2025-11-13 23:31:02 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

2025-11-13 23:31:02 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2025-11-13 23:31:02 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2025-11-13 23:31:02 UTC (buildkit.dockerfile.v0)

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

2025-11-13 23:31:02 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-11-13 23:31:02 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2025-11-13 23:31:02 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