Tag

library/mongo:7.0.8
Content Digest: sha256:0907ce5de8b9aee1935e43fb6e20f80297a08c90de71c0c2b44f9b3ecc9d4906
Manifests
Details
Content Digest

sha256:6cce01a3be94671985ff01c97275ad73fcf6968736e662951cf7cc7045589ceb

Created

2024-04-03 16:02:10 UTC

Size

252 MB


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

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

7.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

7.0.8

PATH

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


Layers

[#000] sha256:e311a697a4031e52691ab1b5a8c325a448280fef9fc03d89dd97ab40f4245bce - 11.16% (28.2 MB)

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

[#002] sha256:9507583e18ac0a030b7bad18f955d5492cf486456b4611674a0d6c31c3cfcc38 - 0.57% (1.43 MB)

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

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

[#005] sha256:d41bdd4b0b5d63bc711b4b95de2f75b9889654ffc57dd29931d42f2dcda6496a - 0.0% (265 Bytes)

[#006] sha256:8da96db6d2f650af0b8e79c3b73709812243535fed557546960812ce33fef512 - 87.86% (222 MB)

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


History
2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02: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

2024-04-03 16:02: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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-04-03 16:02: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.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; wget -O /opt/js-yaml/package.json "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/package.json"; ln -s /opt/js-yaml/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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2024-04-03 16:02: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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.8

2024-04-03 16:02: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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Content Digest

sha256:0e910b6bfda70ce14648f95e0e47c243c6515ba001aafb665bf2c28ec10a2a33

Created

2024-04-09 23:59:45 UTC

Size

2.44 GB


Environment
MONGO_DOWNLOAD_SHA256

30b8b6a96c5887a49e671ba72a7995279be7f232a666acd6717a59f7c68295f3

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.8


Layers

[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 53.06% (1.29 GB)

[#001] sha256:197484daab96ebaf9683bc9230fb0043a8780d2afef249baa386f372a548b76a - 23.34% (582 MB)

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

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

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

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

[#006] sha256:a1ff93885c0ab6bcbd76f3a52d62d2ee013ebadcf8846aaf1c587666689a937f - 23.61% (589 MB)

[#007] sha256:263d20d5e2d5560401ea3c7317cff3b9a5f95feee3a3844025b9660488e8c2ea - 0.0% (1.26 KB)

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

[#009] sha256:4893d12a47e448c9a58f8fb5e8744336d8e975ac0e05b5bfc60e5d88939a2f45 - 0.0% (1.26 KB)


History
2023-06-08 12:55:20 UTC

Apply image 10.0.20348.1787

2024-04-05 09:25:01 UTC

Install update 10.0.20348.2402

2024-04-09 23:58:21 UTC

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

2024-04-09 23:58:22 UTC

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

2024-04-09 23:58:23 UTC

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

2024-04-09 23:58:23 UTC

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

2024-04-09 23:59:43 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.';

2024-04-09 23:59:44 UTC

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

2024-04-09 23:59:44 UTC

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

2024-04-09 23:59:45 UTC

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

Details
Content Digest

sha256:82d10663513160181e3e33ab6aad166870460628358f2db8bd59ec23a77c9e9d

Created

2024-04-09 23:57:47 UTC

Size

2.59 GB


Environment
MONGO_DOWNLOAD_SHA256

30b8b6a96c5887a49e671ba72a7995279be7f232a666acd6717a59f7c68295f3

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.8


Layers

[#000] sha256:c9226d61d3bdbf9f09821b32f5878623b8daaa5fb4f875cb63c199f87a26d57e - 59.33% (1.54 GB)

[#001] sha256:e920b78002850882cc637991bf16e3cd3fdd45576cf3e930819c98f6b43518d3 - 18.47% (490 MB)

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

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

[#004] sha256:5b5f4d141e21ea4a0736f360a604a9c496e67d54ad743f874368c3eb68c0334e - 0.0% (1.27 KB)

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

[#006] sha256:ea22064598a4516497927f12aec6e374bde3737213865e5171c73c1ed7b6bb82 - 22.21% (589 MB)

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

[#008] sha256:9c089f9af27e5f3273765ddbbe23f79d6a783a83a5b59e09fc8202118a33933b - 0.0% (1.27 KB)

[#009] sha256:5659c97dfcab63f6bde47f8cbdbc929c4c66d6a1fb89bebaeb879b78a753a92a - 0.0% (1.26 KB)


History
2023-06-08 12:58:24 UTC

Apply image 10.0.17763.4499

2024-04-06 02:39:33 UTC

Install update 10.0.17763.5696

2024-04-09 23:55:33 UTC

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

2024-04-09 23:55:35 UTC

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

2024-04-09 23:55:35 UTC

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

2024-04-09 23:55:36 UTC

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

2024-04-09 23:57:43 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.';

2024-04-09 23:57:45 UTC

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

2024-04-09 23:57:46 UTC

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

2024-04-09 23:57:47 UTC

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

Details
Content Digest

sha256:27e108639233377e60500fa1b3fef208e0f65f8e84c3c5bd94f6a0d537e4d762

Created

2024-04-03 16:02:10 UTC

Size

243 MB


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

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

7.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

7.0.8

PATH

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


Layers

[#000] sha256:70104cd59e2a443b9d9a13a6bce3bbf1ae78261c4198a40bf69d6e0515abe06a - 10.76% (26.1 MB)

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

[#002] sha256:645b7b6e30ae2933272d4495229ca7bb56b79fbc1005aa636c8957eb79a38e43 - 0.58% (1.4 MB)

[#003] sha256:9416f2ad98ae59a1c7c69cae2cdab4ee63b45c1f46c8cf6ab438c601851ff3d8 - 0.4% (1000 KB)

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

[#005] sha256:7205b41760fd6e4293127467d9ffbb32c9a90b8eca39a26f4f44a27be7aed7df - 0.0% (262 Bytes)

[#006] sha256:22de730d42f0cf5a9abfc90c1dfd0f47c787200c1c62fbf9fe4064136199e4e4 - 88.26% (214 MB)

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


History
2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02:10 UTC

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

2024-04-03 16:02: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

2024-04-03 16:02: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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-04-03 16:02: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.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; wget -O /opt/js-yaml/package.json "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/package.json"; ln -s /opt/js-yaml/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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2024-04-03 16:02: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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.8

2024-04-03 16:02: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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

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

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-04-03 16:02:10 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-04-03 16:02: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.