2025-08-12 20:33:58 UTC
2.7 GB
9faec6c49a5201c3ee331e02e11b8f8681bb7b222507165c994d85782b3902c8
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.23-rc1-signed.msi
MONGO_VERSION7.0.23-rc1
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 50.42% (1.36 GB)
[#001] sha256:06b9b30319b49e62edeeff59663c236bf6a406712417e8a1be70ae07afd76e2c - 28.26% (782 MB)
[#002] sha256:a363d02a5abc8657049b7e68c686fc52038c572870f5d17dbdb6f2f67fdb35c8 - 0.0% (1.29 KB)
[#003] sha256:29d0b6328e2159257b592663e378540d0653906ad4ace2dffa98847f686059c7 - 0.0% (1.25 KB)
[#004] sha256:94a1aee3bb9d5e13f45f25555baad67c33a5720cde4f5d2eae6128d0165f079b - 0.0% (1.26 KB)
[#005] sha256:d7469f1cd61af97eb820d709a14a1fb572a278ba0f885b77a945c6092153e443 - 0.0% (1.26 KB)
[#006] sha256:5dec3b3f318b03bf8a26f909121a5097ae909231d6ee7c6838f332486ee94703 - 21.31% (589 MB)
[#007] sha256:6c1cf59f301fe0e60ecfb7bc56d758f10a5c1b3e50aa6ec0b6d26326832f8956 - 0.0% (1.25 KB)
[#008] sha256:9ecab6c8597874b8b15341403d1928f2d305157193c1a8b10493e31621be46f9 - 0.0% (1.25 KB)
[#009] sha256:d281bef1c4f8876fe66330219a7b69996c3ec387d86dfc31a763088f18f0a829 - 0.0% (1.26 KB)
Apply image 10.0.20348.2700
2025-08-08 18:40:34 UTCInstall update 10.0.20348.4052
2025-08-12 20:32:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-08-12 20:32:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.23-rc1
2025-08-12 20:32:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.23-rc1-signed.msi
2025-08-12 20:32:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=9faec6c49a5201c3ee331e02e11b8f8681bb7b222507165c994d85782b3902c8
2025-08-12 20:33:50 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-08-12 20:33:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-08-12 20:33:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-08-12 20:33:58 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.