2025-03-12 18:58:14 UTC
3.2 GB
518cf974540402bd2992996372d29dd13912e2662d2288649e7984ed091a5e5c
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.20-signed.msi
MONGO_VERSION6.0.20
[#000] sha256:1317fe15185685e9cd27f7542cd96f4847343401288a8b6798273a4ac60844eb - 64.48% (2.06 GB)
[#001] sha256:325ca01145f0fc17834eb1871e37e4a03c69b868e3eb071bf21be6413d720e5e - 20.18% (661 MB)
[#002] sha256:ea059f562a97ea4f1931dd3fba44ac340db8cce04789c2495bef880439bd5c1b - 0.0% (1.26 KB)
[#003] sha256:2785a432152f5691992ca02c51de87d631be5f31b079b16cf203789aeef790f0 - 0.0% (1.28 KB)
[#004] sha256:250e967b71e5e1e9aafd6a7dba3a2704059dba87917fa111c36f864ecf25029d - 0.0% (1.29 KB)
[#005] sha256:e5fb5ebff2ca3903cb4fe301e1d1e87f89115d2a1238752c71c4534131dbb862 - 0.0% (1.26 KB)
[#006] sha256:7e1e8829fcacd2d04835e8dd0fd968aea8038f76e3588b74af8838f39621812f - 15.34% (503 MB)
[#007] sha256:1a661a0febf1ecfd7f9956313b09f657ebe313859112cba9b1b5bdf9b9be9b1b - 0.0% (1.31 KB)
[#008] sha256:1e5c4b6e97e4a698eb75fc6cb0f4318472979b6b47c3129aa30a017a8cc24531 - 0.0% (1.26 KB)
[#009] sha256:d06bfecbcfa9408cf52b3bbf72a4eb267ab240955ff58fc93d3720219161f326 - 0.0% (1.26 KB)
Apply image 10.0.26100.2605
2025-03-07 06:08:48 UTCInstall update 10.0.26100.3476
2025-03-12 18:57:03 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-03-12 18:57:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.20
2025-03-12 18:57:05 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.20-signed.msi
2025-03-12 18:57:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=518cf974540402bd2992996372d29dd13912e2662d2288649e7984ed091a5e5c
2025-03-12 18:58:12 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-03-12 18:58:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-03-12 18:58:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-03-12 18:58:14 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.