2025-05-14 21:00:17 UTC
2.61 GB
960b961edb4b01a65d209a36cefe715c0cf14aea6a886853f2a31fb143790f55
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.20-signed.msi
MONGO_VERSION7.0.20
[#000] sha256:803f4a9590cb9c635813cbd0ee89190f92d5fe4c7589711cf468879e42ce02ba - 61.44% (1.6 GB)
[#001] sha256:a95a939635fd6bec8c1562dcdbdde2fdb64095d1be9873313939c878db6f7279 - 16.55% (442 MB)
[#002] sha256:e090bdc5f5d5235631d6ac5107374d0ae26ee943ed6327356c765c5ad41dd5d6 - 0.0% (1.35 KB)
[#003] sha256:4462b524c275081418b1c9bcd6e41abbea33c8380337c0b344ad890126880300 - 0.0% (1.32 KB)
[#004] sha256:77a4f6fb6ead544ef11cc8147c3f9d9c8b0909b8cf4cb96c34b89fd509be37e5 - 0.0% (1.32 KB)
[#005] sha256:00bd68b843e498bef5debf7e94792ec75ca04a235833a97e0b4add1e8e2a87e4 - 0.0% (1.33 KB)
[#006] sha256:cea5f378be8aa1801d4f7d151cc4b0b5e0777d9faa4a61790c9f6b1f258d8afe - 22.0% (587 MB)
[#007] sha256:a6afb42bd84a3d89b153ec97659b5dc44a2b5208759b56dc967e02d37c964fda - 0.0% (1.32 KB)
[#008] sha256:01ae980896c7db02c46ea2ed307de06c9e61490f5c9f3c66a2d6972c8d8fb8be - 0.0% (1.31 KB)
[#009] sha256:12d261eeb0ef4f1001cdb0e55524cd56b4c91d145544dfdd14d080869f4a0488 - 0.0% (1.36 KB)
Apply image 10.0.17763.6293
2025-05-09 13:51:15 UTCInstall update 10.0.17763.7314
2025-05-14 20:57:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-05-14 20:58:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.20
2025-05-14 20:58:01 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:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=960b961edb4b01a65d209a36cefe715c0cf14aea6a886853f2a31fb143790f55
2025-05-14 21:00:15 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:00:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-05-14 21:00:16 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-05-14 21:00:17 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
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.