Tag

library/mongo:6.0.16
Content Digest: sha256:0aaa5ef71d4576ed2f7f8aef8065760d06b405f398a13dd48e74299df46fde52
Manifests
Details
Content Digest

sha256:51ef6c58075ce4a5c47fb063b1260f7e1f6720b1728486872c46b3adef21f0fd

Created

2024-06-28 22:01:16 UTC

Size

235 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

6.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

6.0.16

PATH

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


Layers

[#000] sha256:857cc8cb19c0f475256df4b7709003b77f101215ebf3693118e61aac6a5ea4ff - 11.97% (28.2 MB)

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

[#002] sha256:5ba92aa7950ca2c71695c74bee165f61e2b370c49687f71af127cecedbc9b125 - 0.61% (1.43 MB)

[#003] sha256:a80270cc7435f8cb278c84c8ab5c6c68953e08995e61b7395c48c76c23aaea47 - 0.44% (1.04 MB)

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

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

[#006] sha256:d42b6d1248302e429f35ae66eb1e51350da1019442a2668548218d59648f3309 - 86.98% (205 MB)

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


History
2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 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-06-28 22:01:16 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-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-06-28 22:01:16 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-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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=6.0

2024-06-28 22:01:16 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-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=6.0.16

2024-06-28 22:01:16 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-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Content Digest

sha256:091dbde510b3fa52909b1683762930295509c675f69fd055901157f5cc9ca741

Created

2024-08-13 20:17:24 UTC

Size

2.48 GB


Environment
MONGO_DOWNLOAD_SHA256

4a0da9d2a8e7151a2c7c8e68406dce00336f2bb2f6b9f1129184c9888c59e032

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

6.0.16


Layers

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

[#001] sha256:dcd649075383e8df03ea713dfe59e1205716fbaa14450c10ef0d0a24a7b63669 - 28.25% (718 MB)

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

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

[#004] sha256:9807def4d3a2b17e97c9ee1db5f3f048dc9004e821d796551dfd52127f0f9568 - 0.0% (1.25 KB)

[#005] sha256:878012323eceac784fb6da841882131ec5adbf7008124186044af6bffd528aef - 0.0% (1.25 KB)

[#006] sha256:9d704d43dc522cb435868474153b267fff4dbd984f0f32b4c951a9d56d259dc6 - 19.66% (500 MB)

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

[#008] sha256:1c0ea816c530110c09f37cff2f1fadc5d7096a797918f21c836b26e323be5988 - 0.0% (1.26 KB)

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


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

Apply image 10.0.20348.1787

2024-08-10 19:49:59 UTC

Install update 10.0.20348.2655

2024-08-13 20:16:20 UTC

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

2024-08-13 20:16:20 UTC

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

2024-08-13 20:16:21 UTC

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

2024-08-13 20:16:22 UTC

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

2024-08-13 20:17:22 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-08-13 20:17:23 UTC

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

2024-08-13 20:17:24 UTC

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

2024-08-13 20:17:24 UTC

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

Details
Content Digest

sha256:dc5c37111a6e4ca75f2eec26066a60f4a62721730bc899644b71eb702c52a225

Created

2024-08-13 20:25:53 UTC

Size

2.58 GB


Environment
MONGO_DOWNLOAD_SHA256

4a0da9d2a8e7151a2c7c8e68406dce00336f2bb2f6b9f1129184c9888c59e032

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

6.0.16


Layers

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

[#001] sha256:579bd4d5f7fd8737f66e40b29aafedee32d589107027d75796993c8898e3e7dd - 21.47% (567 MB)

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

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

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

[#005] sha256:fde6c1cb09478672155482006428d7eb13cfd863840fd7adf3f8ab5b0e8a8d8e - 0.0% (1.27 KB)

[#006] sha256:16e93be56fc87f23982cfe52d7f2fa0e5c12380717880eac74325f4c93493880 - 18.93% (500 MB)

[#007] sha256:6719df67e94afb3ab87f2a207ab206e78de3321c84ad4d5447c2fda2b51785ca - 0.0% (1.26 KB)

[#008] sha256:73995ddda7699e4b5ccc690bb29acfb5a98dfa335fd201614400f7c4cfa90059 - 0.0% (1.27 KB)

[#009] sha256:a8f2b8d8fc95821a122f0f2ddf0eb452fa0a79cf868a3261c842f5114261feee - 0.0% (1.27 KB)


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

Apply image 10.0.17763.4499

2024-08-11 07:11:31 UTC

Install update 10.0.17763.6189

2024-08-13 20:23:51 UTC

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

2024-08-13 20:23:54 UTC

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

2024-08-13 20:23:54 UTC

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

2024-08-13 20:23:55 UTC

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

2024-08-13 20:25:49 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-08-13 20:25:51 UTC

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

2024-08-13 20:25:52 UTC

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

2024-08-13 20:25:53 UTC

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

Details
Content Digest

sha256:237290efb1e5db7565c740e8c864dbd28d5aaac944ddb82afe551fed7664c507

Created

2024-06-28 22:01:16 UTC

Size

226 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

6.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

6.0.16

PATH

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


Layers

[#000] sha256:e63ce922f0229bde5aea9f366c46883dcd23747e7d2c541f16665f199dbf98b8 - 11.55% (26.1 MB)

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

[#002] sha256:43b46311ab598f2b54f733e70bf994f009a4d0e96b1ca8244fe0c81dfda8c066 - 0.62% (1.4 MB)

[#003] sha256:b96d2188a6e85a3f714752496b0933daa09689e8b9723b520f1392134e7b6e37 - 0.43% (1000 KB)

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

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

[#006] sha256:a025451b8140ebc28fda7410ca552f6d39904bdb95c549e02ace6361979f51c7 - 87.39% (197 MB)

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


History
2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 UTC

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

2024-06-28 22:01:16 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-06-28 22:01:16 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-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-06-28 22:01:16 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-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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=6.0

2024-06-28 22:01:16 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-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=6.0.16

2024-06-28 22:01:16 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-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-06-28 22:01:16 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-06-28 22:01:16 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.