2025-12-29 20:17:31 UTC
1.95 GB
688b8e27d8614a44a8d5235fe3f63e1519c92ee0ce19fd8ad4af9ce39337e227
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.32-signed.msi
MONGO_VERSION5.0.32
[#000] sha256:3cc21a1b754848d23f00aa65cb94ec34c9a5dc6028b3aada42039c824738d02f - 71.12% (1.39 GB)
[#001] sha256:1fc19ec18c41e4c8edf1a76eecae2be22e29445f11ee586523f59e36de40aebb - 13.89% (277 MB)
[#002] sha256:e708ac5198cb844554f3070cce7ae79962cf78688d52d1acaa1906611c89f349 - 0.0% (1.28 KB)
[#003] sha256:ffbe6bc3c24dfb6464685d3b01e948523ff3972239db4fcc2a3fd71fbcc614bb - 0.0% (1.29 KB)
[#004] sha256:d1bd8d4b7c07d2e824df8f70c7b7b19de52e882d328fede20835ea3575425c99 - 0.0% (1.29 KB)
[#005] sha256:318b642ac9606f9a8ec55f9c8ab4fcf544fe93169b2e99fa53596f1e6f45f779 - 0.0% (1.26 KB)
[#006] sha256:cb98525e9a7b2f785ff676f29bbc11a22fdc252abc9cc11f0811d58b3fe45e6b - 14.99% (299 MB)
[#007] sha256:28c2858332ddde00db5200c8c42c7b7b379ea026af9e125b94a3acc59f6b042c - 0.0% (1.3 KB)
[#008] sha256:00f38cbaa345bd5160efa79e7527518b412ada080df7d7062b0ff8499eaf9d63 - 0.0% (1.27 KB)
[#009] sha256:aa24444477f601204a5445f9cb715352387214d5acc294aea642451083407b7a - 0.0% (1.29 KB)
Apply image 10.0.20348.4294
2025-12-05 18:19:35 UTCInstall update 10.0.20348.4529
2025-12-29 20:14:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-12-29 20:14:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.32
2025-12-29 20:14:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.32-signed.msi
2025-12-29 20:14:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=688b8e27d8614a44a8d5235fe3f63e1519c92ee0ce19fd8ad4af9ce39337e227
2025-12-29 20:17:28 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.';
2025-12-29 20:17:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-12-29 20:17:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-12-29 20:17:31 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.