2025-04-29 22:05:39 UTC
263 MB
1.17
HOME/data/db
JSYAML_CHECKSUM662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941
JSYAML_VERSION3.13.1
MONGO_MAJOR7.0
MONGO_PACKAGEmongodb-org
MONGO_REPOrepo.mongodb.org
MONGO_VERSION7.0.20
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:89dc6ea4eae2b38a3550534ece4983005a7d2e90e4fa503ed04dcfc58ee71159 - 10.72% (28.2 MB)
[#001] sha256:faa68417c814d1d44110d1668b617f214e88ddf91ffd5dc6e9f986e7959be1d4 - 0.0% (1.74 KB)
[#002] sha256:e6e5047c19850c5adddfca334978be020c0df7542c192100d8eaf496d4c92b3c - 0.55% (1.44 MB)
[#003] sha256:14a7b7ec93277085b8984e4e2fd680adffc2c34317c83220b4a294b51e848618 - 0.4% (1.04 MB)
[#004] sha256:1209b3d78c260aed41c795b62e38b1c49eb9129461036831eb94139da138b74a - 0.0% (116 Bytes)
[#005] sha256:04c88c0b185c7b11846d707791c9c778595511c19f6acecdb150278204409f0d - 0.0% (262 Bytes)
[#006] sha256:ebbe65cc525ab976d51f6c1427f8e38618a2f5a7697f910f5db902e55f6ce47a - 88.33% (232 MB)
[#007] sha256:56b12a794baed4dbbf921551b9b7536ef60944ca88225e52daf3518177869d8a - 0.0% (4.88 KB)
/bin/sh -c #(nop) ARG RELEASE
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) ADD file:82f38ebced7b2756311fb492d3d44cc131b22654e8620baa93883537a3e355aa in /
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2025-04-29 22:05:39 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-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV JSYAML_VERSION=3.13.1
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941
2025-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ARG MONGO_PACKAGE=mongodb-org
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ARG MONGO_REPO=repo.mongodb.org
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV MONGO_MAJOR=7.0
2025-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV MONGO_VERSION=7.0.20
2025-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)VOLUME [/data/db /data/configdb]
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV HOME=/data/db
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)EXPOSE map[27017/tcp:{}]
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)CMD ["mongod"]
2025-05-14 21:02:35 UTC
3.77 GB
960b961edb4b01a65d209a36cefe715c0cf14aea6a886853f2a31fb143790f55
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.20-signed.msi
MONGO_VERSION7.0.20
[#000] sha256:1317fe15185685e9cd27f7542cd96f4847343401288a8b6798273a4ac60844eb - 54.74% (2.06 GB)
[#001] sha256:cc834e13e71633c2d66ec6513d57c31a3157fc5933859d492ecf45fc8a7476c3 - 30.04% (1.13 GB)
[#002] sha256:ab92c5eb1943b12ca707a29d479ba07117a09af929c4ed3663d9e84108e25571 - 0.0% (1.26 KB)
[#003] sha256:dc75dc23fd65d0d8770353580d71c5770835cc10140dcb962a1d95f579f52b85 - 0.0% (1.26 KB)
[#004] sha256:2b78ea95e31c01a21aa26557cf613cbed286790bf3bc9a7c209e59db643c09f8 - 0.0% (1.28 KB)
[#005] sha256:a781548c1e860888de26f31bc00d5f007a825830b0c8f99c4542e290a22fe886 - 0.0% (1.26 KB)
[#006] sha256:72aba9935c84390256923338dd2d136b7e3bebc473826dcaecbec9d98c19607f - 15.22% (587 MB)
[#007] sha256:243c76ee5866d7bb9678521a5747939e162e6b36ff531af03cdfecfc1c3f04ad - 0.0% (1.26 KB)
[#008] sha256:ba21027b164642ae8486e8649c901cd60627291c60e172e36832b6f5e6a7d047 - 0.0% (1.34 KB)
[#009] sha256:dde9223d42495ccd8b6de2defd8ad92d7ac823850c2e5c56ad0252e926788669 - 0.0% (1.26 KB)
Apply image 10.0.26100.2605
2025-05-10 01:13:32 UTCInstall update 10.0.26100.4061
2025-05-14 21:01:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-05-14 21:01:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.20
2025-05-14 21:01:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.20-signed.msi
2025-05-14 21:01:16 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=960b961edb4b01a65d209a36cefe715c0cf14aea6a886853f2a31fb143790f55
2025-05-14 21:02:32 UTCpowershell -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-05-14 21:02:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-05-14 21:02:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-05-14 21:02:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
2025-05-14 20:59:59 UTC
2.69 GB
960b961edb4b01a65d209a36cefe715c0cf14aea6a886853f2a31fb143790f55
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.20-signed.msi
MONGO_VERSION7.0.20
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 50.6% (1.36 GB)
[#001] sha256:9f99f0856d3665c6aeede32823351187cdab09d90cb8608ff70427d552ab356b - 28.08% (774 MB)
[#002] sha256:496bf096bfec7e24fab1a9b7efe38a80e0c990f9076a663fecc528ffab96c171 - 0.0% (1.33 KB)
[#003] sha256:01833545347aafa929648bd5afdcfe528eb5aca8df3ae5aafca7e828d3c60f92 - 0.0% (1.28 KB)
[#004] sha256:ab43e1298892ba9ebac426a66b2b1f0a8b6ee46d5752df9345231b996aa626b9 - 0.0% (1.26 KB)
[#005] sha256:c478528ad61ae2f6591e720f4f434736e5fa23ebb8221992182ce6c4fd3bcb87 - 0.0% (1.25 KB)
[#006] sha256:47ec7a0e2b9866dd6a6f6770b9bfa994f854acc21a1ba29714d4b869779dd048 - 21.32% (587 MB)
[#007] sha256:a1baf057db55350ef6dfb2e8b11cd87128998462dc8a54609e89d21801c125ca - 0.0% (1.25 KB)
[#008] sha256:1ca6b16f24979300973e2d18de08b96a6ad0c2a6dadacb69a2a11b1f39433cc2 - 0.0% (1.25 KB)
[#009] sha256:452f4acc6e3f8cb0cb69b002a40f425cf92eb401014afbde3d12777828d4ceca - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2025-05-09 19:38:10 UTCInstall update 10.0.20348.3692
2025-05-14 20:58:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-05-14 20:58:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.20
2025-05-14 20:58:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.20-signed.msi
2025-05-14 20:58:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=960b961edb4b01a65d209a36cefe715c0cf14aea6a886853f2a31fb143790f55
2025-05-14 20:59:55 UTCpowershell -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-05-14 20:59:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-05-14 20:59:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-05-14 20:59:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
2025-04-29 22:05:39 UTC
251 MB
1.17
HOME/data/db
JSYAML_CHECKSUM662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941
JSYAML_VERSION3.13.1
MONGO_MAJOR7.0
MONGO_PACKAGEmongodb-org
MONGO_REPOrepo.mongodb.org
MONGO_VERSION7.0.20
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:0e25612b6db22df273732c47faba1dd81735a0dd9f6ea27b5222f281d67409f5 - 10.4% (26.1 MB)
[#001] sha256:5eb248b6ddf1eadf7eaca9b867b48d2fb358bd5fc7dfc92e87380a22b8b17059 - 0.0% (1.75 KB)
[#002] sha256:2cc77ea490de9f702ea64bc43eb81ee198becae77e86919b49e883735ad25f0b - 0.56% (1.41 MB)
[#003] sha256:3158b1c1e6c9cc737ff7f08bbdcbc3347ae2cee597bf6dfa7cf477f9222afa4a - 0.39% (1000 KB)
[#004] sha256:713746464844a161951ac8fb95333403ed5084a9f98a472f288b7f9319ff2753 - 0.0% (116 Bytes)
[#005] sha256:4e05c0f84fef18b087bc441264e6c079bc15949819f18fe0c869220cf3e30521 - 0.0% (263 Bytes)
[#006] sha256:1cf42c4df4e972f6ac96194cc866db9ce146829346ac34585f664df177161ded - 88.64% (222 MB)
[#007] sha256:4d21942fc386424b65f61f273f3a43b1c57a01e54ea39f636afebfd5b1be0ac9 - 0.0% (4.88 KB)
/bin/sh -c #(nop) ARG RELEASE
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) ADD file:7adcd25cfa0f5393043ae51833e5654ddd86b0c9fe24cfdacf535c1c2c516c7a in /
2025-04-29 22:05:39 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2025-04-29 22:05:39 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-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV JSYAML_VERSION=3.13.1
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941
2025-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ARG MONGO_PACKAGE=mongodb-org
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ARG MONGO_REPO=repo.mongodb.org
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV MONGO_MAJOR=7.0
2025-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV MONGO_VERSION=7.0.20
2025-04-29 22:05:39 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-04-29 22:05:39 UTC (buildkit.dockerfile.v0)VOLUME [/data/db /data/configdb]
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENV HOME=/data/db
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)EXPOSE map[27017/tcp:{}]
2025-04-29 22:05:39 UTC (buildkit.dockerfile.v0)CMD ["mongod"]
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.