Namespace
library
Image / Tag
mongo:6.0
Content Digest
sha256:0a83b2f824b29c94c5284a49b018db2e3166d9879d1edda5cce545d899ef2bbb
Details
Created

2025-10-01 00:16:47 UTC

Size

254 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

6.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

6.0.26

PATH

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


Layers

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

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

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

[#003] sha256:dc9abaf2c8ffe90fc4111103231c75f39e8ddf1aa58d17a98bb4821ff1a578a3 - 0.34% (877 KB)

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

[#005] sha256:9d81a4e85c6a9b8c3b48ec8e676dffbd1adde813203645cb56c89c7ab37dc228 - 0.0% (267 Bytes)

[#006] sha256:9d6e74542339a0d0b43b8cf05c49b2cf0d06f4ac17033db93f70951106dfe74d - 88.02% (224 MB)

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


History
2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 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-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2025-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

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

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

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

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=6.0

2025-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=6.0.26

2025-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

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

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2025-10-24 18:26:23 UTC

Size

3.49 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

b32578a8d982810c6a9a0b2f962bd45053701d97415f901030b796ec93dea75a

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

6.0.26


Layers

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

[#001] sha256:27c754a6aa9f16aa1c4d70f2ffa463bbd24a85c1acd69772fb9ea2d810f69847 - 26.82% (958 MB)

[#002] sha256:28fc55a62bc5ce80a72a387a0f00371aaa400898ee85680d6a902d16d067ec41 - 0.0% (1.3 KB)

[#003] sha256:72a213291317e87a12a34efe8151a6e2308db9f61df40b26abde19183473157e - 0.0% (1.3 KB)

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

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

[#006] sha256:e78e3eb3159c9348e58ce7551866e41f4c2a648fc9179f5ba5d2139a2bc27aa3 - 14.06% (503 MB)

[#007] sha256:09a7b3b79755d99dbf5066ed296fcdc4c90589c240fb6592ce5334012b6bf855 - 0.0% (1.31 KB)

[#008] sha256:854a8e1bd6b152efe999661ad43f645d8508849a609b44d737613ccccd5c7e78 - 0.0% (1.28 KB)

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


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

Apply image 10.0.26100.2605

2025-10-22 07:45:25 UTC

Install update 10.0.26100.6905

2025-10-24 18:24:48 UTC

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

2025-10-24 18:24:48 UTC

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

2025-10-24 18:24:49 UTC

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

2025-10-24 18:24:50 UTC

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

2025-10-24 18:26:21 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-10-24 18:26:22 UTC

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

2025-10-24 18:26:23 UTC

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

2025-10-24 18:26:23 UTC

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

Details
Created

2025-10-24 18:29:14 UTC

Size

1.96 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

b32578a8d982810c6a9a0b2f962bd45053701d97415f901030b796ec93dea75a

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

6.0.26


Layers

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

[#001] sha256:130d5bf0bd040ed2a9354c6bb5dc8ff89b34e452980249bf817f0b7cb33a21ce - 4.19% (84.1 MB)

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

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

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

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

[#006] sha256:f127f7b04cb9159a973cb1a7d163e540d300e127f6dc578ca06311c432bb8751 - 25.05% (503 MB)

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

[#008] sha256:16a7b471bcecd8c7e8ccd1d9c064d9d983f25add36055c05b028ba9ba2407b4e - 0.0% (1.28 KB)

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


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

Apply image 10.0.20348.4294

2025-10-22 21:59:56 UTC

Install update 10.0.20348.4297

2025-10-24 18:22:32 UTC

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

2025-10-24 18:25:04 UTC

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

2025-10-24 18:25:04 UTC

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

2025-10-24 18:25:05 UTC

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

2025-10-24 18:29:12 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-10-24 18:29:13 UTC

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

2025-10-24 18:29:13 UTC

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

2025-10-24 18:29:14 UTC

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

Details
Created

2025-10-01 00:16:47 UTC

Size

244 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

6.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

6.0.26

PATH

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


Layers

[#000] sha256:f85691aa4b9092cbb48212c835b78068e3321656ba2c306dae491e1a02d1b4d3 - 10.72% (26.1 MB)

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

[#002] sha256:2f484b6522fb4fb46ebe7644238e74438e0e47015ca4cc1eb5700c12ac76b771 - 0.58% (1.41 MB)

[#003] sha256:25a4649e0b8ff7ea1099146fcc633458369fd91dfcc14d55184cb2f223c0d32f - 0.33% (831 KB)

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

[#005] sha256:64268b1207f417c2a692ca45801a94096b06b0836707f848093d67df492e8ec9 - 0.0% (263 Bytes)

[#006] sha256:4dce7b7ad59afe267dc007b0019f054a908d9422357cd3602d21de431c04274e - 88.37% (215 MB)

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


History
2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 UTC

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

2025-10-01 00:16:47 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-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.19

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941

2025-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

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

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

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

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=6.0

2025-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=6.0.26

2025-10-01 00:16:47 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-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

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

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2025-10-01 00:16:47 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2025-10-01 00:16:47 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