Namespace
library
Image / Tag
mongo:6.0.25
Content Digest
sha256:363f5fab76d1616de3ce3b0228159126939f7ceb213c357f53cc2c0611e46cc5
Details
Created

2025-07-17 22:01:10 UTC

Size

255 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • org.opencontainers.image.version
    22.04

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_CHECKSUM

662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

JSYAML_VERSION

3.13.1

MONGO_MAJOR

6.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

6.0.25

PATH

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


Layers

[#000] sha256:a3be5d4ce40198dc77f17780f02720f55b1898a2368f701dd1619fc9f84aac86 - 11.07% (28.2 MB)

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

[#002] sha256:11cfdf60aef15e5794a0b7ace3effebae46f8ee4308963a13f25311844e09978 - 0.57% (1.44 MB)

[#003] sha256:a1f82b251ca3435c93db34a2e5508c430814929f870578d60d628cebd00ece45 - 0.41% (1.04 MB)

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

[#005] sha256:98fc5242ccdadc6a354ca0cf8b8de52716309830f67e48a0aab31ddca3197be0 - 0.0% (266 Bytes)

[#006] sha256:e0463f09bf7c1c5587605ecf50726a6f8da5c5b282581df668da5f15b9b9cbe6 - 87.95% (224 MB)

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


History
2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 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-07-17 22:01:10 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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2025-07-17 22:01:10 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-6.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '39BD841E4BE5FB195A65400E6A26B1AE64C3C388' > /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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

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

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

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

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=6.0

2025-07-17 22:01:10 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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=6.0.25

2025-07-17 22:01:10 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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

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

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2025-08-12 20:33:53 UTC

Size

3.75 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

1303e7480877cbd373bf1dbe1233631985d61898d7d5c85d3e8ef1ecca7d5f63

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

6.0.25


Layers

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

[#001] sha256:203c144449ed67b479a4424fa1d1138f1c8909f1e47a45a6500d4d7f7d058549 - 31.88% (1.2 GB)

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

[#003] sha256:e20101344b5a6ca3f8bbc5e60e53ded70ce0424ae2fc99ffe25d2dc8c16b29e1 - 0.0% (1.28 KB)

[#004] sha256:2b95f0a6c1e893be8c7914dea17894fdcbbd4a33cc15527efc6df0dbba45d2dd - 0.0% (1.35 KB)

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

[#006] sha256:6f1e3c152650cfc979ebe75090f990bea7146ddd1663a1e019dbac184cff6c6f - 13.1% (503 MB)

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

[#008] sha256:c8c575afb1a6cbc34ace70c036e67ef411d4bd77f13eb5163c9fdba562f12afa - 0.0% (1.29 KB)

[#009] sha256:6238fb4fdacb2e24365db7df9a07ad3fca61aaeb48994e35c4de8a16bc848ac4 - 0.0% (1.3 KB)


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

Apply image 10.0.26100.2605

2025-08-10 03:12:45 UTC

Install update 10.0.26100.4946

2025-08-12 20:33:12 UTC

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

2025-08-12 20:33:13 UTC

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

2025-08-12 20:33:13 UTC

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

2025-08-12 20:33:13 UTC

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

2025-08-12 20:33:52 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-08-12 20:33:52 UTC

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

2025-08-12 20:33:53 UTC

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

2025-08-12 20:33:53 UTC

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

Details
Created

2025-08-12 20:33:07 UTC

Size

2.62 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

1303e7480877cbd373bf1dbe1233631985d61898d7d5c85d3e8ef1ecca7d5f63

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

6.0.25


Layers

[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 52.05% (1.36 GB)

[#001] sha256:06b9b30319b49e62edeeff59663c236bf6a406712417e8a1be70ae07afd76e2c - 29.17% (782 MB)

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

[#003] sha256:deff1e07244ddd7cb746033ea1b37bdd890f32905b13bdf497689bdd6e217ce3 - 0.0% (1.25 KB)

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

[#005] sha256:332c9db24a797be16bfa9f97bcbfcf059873dc79073d030f521d0b13ff7e96af - 0.0% (1.25 KB)

[#006] sha256:6e600e40e2412365952462d3df837e7458b7f003cc56cf483740864cb1328c7a - 18.78% (503 MB)

[#007] sha256:9105ea31a68080306f829308aa389065bdd147017be4e9ac7ae5621cff14c520 - 0.0% (1.25 KB)

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

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


History
2024-09-06 00:01:38 UTC

Apply image 10.0.20348.2700

2025-08-08 18:40:34 UTC

Install update 10.0.20348.4052

2025-08-12 20:32:18 UTC

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

2025-08-12 20:32:19 UTC

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

2025-08-12 20:32:20 UTC

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

2025-08-12 20:32:21 UTC

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

2025-08-12 20:33: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.';

2025-08-12 20:33:05 UTC

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

2025-08-12 20:33:06 UTC

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

2025-08-12 20:33:07 UTC

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

Details
Created

2025-07-17 22:01:10 UTC

Size

244 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • org.opencontainers.image.version
    22.04

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_CHECKSUM

662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

JSYAML_VERSION

3.13.1

MONGO_MAJOR

6.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

6.0.25

PATH

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


Layers

[#000] sha256:12988d4e65587a5bf2d724b19602de581247805c1ae6298b95f29cef57aabbed - 10.69% (26.1 MB)

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

[#002] sha256:4dd72ac03ee5df6847c9f8b19aca5f3b6a8e51d2b5a37536f5b458d506eb9b41 - 0.58% (1.41 MB)

[#003] sha256:0661628b92c365cb6daab4c34259d0d15a4b147bff76cb99e838ae2bd7ddf798 - 0.4% (1000 KB)

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

[#005] sha256:93ac6f4a0e2cbed08f708e59c0d4b1e9a29ceedb338d6e9201c16142235361b3 - 0.0% (263 Bytes)

[#006] sha256:56282c57d77e69513f35ddccde51e4451d8ef724a2f8ed154ed34ed4c92c2b07 - 88.32% (216 MB)

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


History
2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 UTC

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

2025-07-17 22:01:10 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-07-17 22:01:10 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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2025-07-17 22:01:10 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-6.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '39BD841E4BE5FB195A65400E6A26B1AE64C3C388' > /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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

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

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

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

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=6.0

2025-07-17 22:01:10 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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=6.0.25

2025-07-17 22:01:10 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-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

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

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-07-17 22:01:10 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2025-07-17 22:01:10 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