2024-02-07 00:59:03 UTC
251 MB
1.17
HOME/data/db
JSYAML_VERSION3.13.1
MONGO_MAJOR5.0
MONGO_PACKAGEmongodb-org
MONGO_REPOrepo.mongodb.org
MONGO_VERSION5.0.24
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:8ee0874247356ecb5ea92128219660506b139dcb6cc45dcab84d98b3c6485061 - 10.45% (26.2 MB)
[#001] sha256:aeab5314e7a6ae5a9a1d93a8d17c104f7c13a6914e959211aa3d948b5767e7a6 - 0.0% (1.74 KB)
[#002] sha256:7e76f01966cfb8bfd93993211f014154026599be1a4a67ae9d4a306f4324b5d5 - 1.17% (2.93 MB)
[#003] sha256:b0d45f529ef1f2fa4da373da24e5cbebe299f24a34b9ec0e5eead15a4f43397e - 0.41% (1.04 MB)
[#004] sha256:141615f31bfcaa794c2f0a5e45a43d26fc4566cce3f635c8bfca8bf8ba2bdf63 - 0.0% (116 Bytes)
[#005] sha256:a33a5d9a3373f1da57d9edb34c2eda31a04befca29bef82ba3d3c8447fefe034 - 0.0% (260 Bytes)
[#006] sha256:c892523ed5ad71eeb04c7181789c9b03344491baf068776b19a42741f2319195 - 87.96% (221 MB)
[#007] sha256:b9d72513853efe57724d07dc8a3dad43053e716bedefd4210060fc206b250b7a - 0.0% (4.88 KB)
/bin/sh -c #(nop) ARG RELEASE
2024-01-23 13:01:02 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2024-01-23 13:01:02 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
2024-01-23 13:01:02 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04
2024-01-23 13:01:04 UTC/bin/sh -c #(nop) ADD file:4b4e122c96445546ef9fba44a4eae6ada6239edecb9eea2c807a83abaebad451 in /
2024-01-23 13:01:04 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2024-02-07 00:59:03 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-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV JSYAML_VERSION=3.13.1
2024-02-07 00:59:03 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-5.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11' > /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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ARG MONGO_PACKAGE=mongodb-org
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ARG MONGO_REPO=repo.mongodb.org
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV MONGO_MAJOR=5.0
2024-02-07 00:59:03 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 focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV MONGO_VERSION=5.0.24
2024-02-07 00:59:03 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 && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)VOLUME [/data/db /data/configdb]
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV HOME=/data/db
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)EXPOSE map[27017/tcp:{}]
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)CMD ["mongod"]
2024-02-14 20:03:26 UTC
2.07 GB
a83af50b58ce226c14235466ca5f88c4d5c40002cb8470118b5c8c42a6a27dac
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.24-signed.msi
MONGO_VERSION5.0.24
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 62.42% (1.29 GB)
[#001] sha256:855fa6b82f2f8fea22646f0d4aa228ea8cbb8bc562afd14a163a8f3d0eb010e1 - 23.47% (498 MB)
[#002] sha256:e2368db7e2c20d9b4a5c34d4017c1f5f1b50e589e2f643208438e8ad4b8088b6 - 0.0% (1.26 KB)
[#003] sha256:2c2a8259d7c9447be6a4845bd1d640caf3f9807b683f101e5718e4fa07fdfaad - 0.0% (1.26 KB)
[#004] sha256:ac68fbbcd66c6085de752080011ac7eaf2646762df1146a4f85ccf63a76bde71 - 0.0% (1.25 KB)
[#005] sha256:00c02c00b0d0c0c237440d43126ec89ec9375e9c9c2adebf36efb64928a7596b - 0.0% (1.26 KB)
[#006] sha256:9dcd73137a74dee3c9f4eb83f1526b132112c46ae8f0e1489e75df1a2362473c - 14.11% (299 MB)
[#007] sha256:12997cc3871560d361e6e6eb3a5521c05d66c5ee554c1d60f7d44248cf79fa14 - 0.0% (1.29 KB)
[#008] sha256:5a5974a7ce3dcde7f1a786598bec76c0099c852e239cb45fb966c1e9279a5592 - 0.0% (1.26 KB)
[#009] sha256:b43fd4ba32e8e8f034df928e11fe22879dc5e6b4fa64ff23c2019a53279a5028 - 0.0% (1.26 KB)
Apply image 10.0.20348.1787
2024-02-07 06:55:59 UTCInstall update 10.0.20348.2322
2024-02-14 20:02:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-02-14 20:02:19 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.24
2024-02-14 20:02:20 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.24-signed.msi
2024-02-14 20:02:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=a83af50b58ce226c14235466ca5f88c4d5c40002cb8470118b5c8c42a6a27dac
2024-02-14 20:03:22 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=Client,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 ' mongo --version'; mongo --version; 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-02-14 20:03:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-02-14 20:03:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-02-14 20:03:26 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
2024-02-14 20:02:10 UTC
2.23 GB
a83af50b58ce226c14235466ca5f88c4d5c40002cb8470118b5c8c42a6a27dac
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.24-signed.msi
MONGO_VERSION5.0.24
[#000] sha256:c9226d61d3bdbf9f09821b32f5878623b8daaa5fb4f875cb63c199f87a26d57e - 68.94% (1.54 GB)
[#001] sha256:dda007680e5cddfaf6f5428f70f8c514ac0b9dd099972b7d475cce4c5c899558 - 17.95% (410 MB)
[#002] sha256:221fd5943321c7410203a10402536202c1dbe513e1353f303c2dc180543e2b07 - 0.0% (1.27 KB)
[#003] sha256:2f6efd9cd672bda5fd0d6e4900907bfe9aafcacfcfe4f7e5d912f160a997590c - 0.0% (1.27 KB)
[#004] sha256:1ce9c35e4093b63acb7d96d82126d4aea3a80923e043938059dff2b00b8b2ed4 - 0.0% (1.26 KB)
[#005] sha256:3059f424b1d3976ad5b16608df17a6de5708ed93af7b623699feebd6724a9002 - 0.0% (1.27 KB)
[#006] sha256:df39e171f2fde8299c3fae3837b09aab11499d1ead220a5d91a506e6161a5428 - 13.11% (299 MB)
[#007] sha256:942fd38c2c8082d83f0d9c5075e23fa22855acfa154bb5e37e72f560f3323c80 - 0.0% (1.27 KB)
[#008] sha256:c5559e08edd6f919152ce81e4b9f111f166d1e6cf1b67fb2d0731fe3c2d6ab06 - 0.0% (1.26 KB)
[#009] sha256:38a163fd7e7da23c8a97d1ee6ea41ef964eb962fa147b2e0fd0e53af87ed840b - 0.0% (1.26 KB)
Apply image 10.0.17763.4499
2024-02-04 04:14:09 UTCInstall update 10.0.17763.5458
2024-02-14 20:00:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-02-14 20:00:47 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.24
2024-02-14 20:00:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.24-signed.msi
2024-02-14 20:00:49 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=a83af50b58ce226c14235466ca5f88c4d5c40002cb8470118b5c8c42a6a27dac
2024-02-14 20:02:06 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=Client,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 ' mongo --version'; mongo --version; 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-02-14 20:02:08 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-02-14 20:02:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-02-14 20:02:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
2024-02-07 00:59:03 UTC
244 MB
1.17
HOME/data/db
JSYAML_VERSION3.13.1
MONGO_MAJOR5.0
MONGO_PACKAGEmongodb-org
MONGO_REPOrepo.mongodb.org
MONGO_VERSION5.0.24
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:bc5b5b7ccd1e19c62fdfc4688b98b69619822aab7431a47a392d5795347d854f - 10.16% (24.8 MB)
[#001] sha256:234fb188b2907c9715c7137a90acbfd86a567df40cb64cba4347f0e70b62bf32 - 0.0% (1.75 KB)
[#002] sha256:2a3e56574048716548ffedbd95cd3f241e84077f8afa6862852f8eebe3c60a9f - 1.15% (2.79 MB)
[#003] sha256:72f3f226b7f8bb00b47569f130d03eb5d75f616c4456633f8fcbefe31d3a3bca - 0.4% (1000 KB)
[#004] sha256:7e749e2a16caca2a2abe60d1610aa62a9f6f0a5df9732631d7185dff5eeb9697 - 0.0% (114 Bytes)
[#005] sha256:88d105145eb18791dfd5e881f32f0abd2527e06478fb317a46599478686a8331 - 0.0% (259 Bytes)
[#006] sha256:d7948da08eb601f2f04082b00ccdc04ad3a9559259deee2af0d2bccd5be3f907 - 88.29% (215 MB)
[#007] sha256:72fb6acd00c03520e4c51f56f5890e616ece38fd0b09ed88154a05e654291273 - 0.0% (4.88 KB)
/bin/sh -c #(nop) ARG RELEASE
2024-01-23 13:04:26 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2024-01-23 13:04:26 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
2024-01-23 13:04:26 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04
2024-01-23 13:04:27 UTC/bin/sh -c #(nop) ADD file:9497e9dbcde9a04e764625c77c975cfced1dd0bb3bb7717572ea47621f3c12a7 in /
2024-01-23 13:04:27 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2024-02-07 00:59:03 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-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV JSYAML_VERSION=3.13.1
2024-02-07 00:59:03 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-5.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11' > /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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ARG MONGO_PACKAGE=mongodb-org
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ARG MONGO_REPO=repo.mongodb.org
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV MONGO_MAJOR=5.0
2024-02-07 00:59:03 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 focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV MONGO_VERSION=5.0.24
2024-02-07 00:59:03 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 && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)VOLUME [/data/db /data/configdb]
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENV HOME=/data/db
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)EXPOSE map[27017/tcp:{}]
2024-02-07 00:59:03 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.