2025-03-12 19:03:54 UTC
2.61 GB
630380f85864dc34e1a154acc65e8d9301b0c9c8a8565ee9df5ff0ec17ea0556
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.21-rc1-signed.msi
MONGO_VERSION6.0.21-rc1
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 52.27% (1.36 GB)
[#001] sha256:75861b2b3af9a692daa04d9c15a1c79d8a009e23ed5140003350c9b926460f09 - 28.88% (770 MB)
[#002] sha256:c02fba386305ead4b4728bd721b95acffec3c352735060e25a09aa88cd2939a8 - 0.0% (1.3 KB)
[#003] sha256:ca241527790bf343a52b7de57f617dbffbc29b81cc7ebfcf7d353fead89c9311 - 0.0% (1.26 KB)
[#004] sha256:12c7ebe81cc1f031c620e6b10d94c0a3bb67aba4b4679f7759edc571a68f66b4 - 0.0% (1.25 KB)
[#005] sha256:ba46c6ca6a4a859d9d450a2a61a2b9262906e4cc23f7f80a98095418bb9010d6 - 0.0% (1.25 KB)
[#006] sha256:2f885f654d58d3feaf06292aefbb1570ebf436ca634c5077c549af7a0f2aae2b - 18.85% (503 MB)
[#007] sha256:ee99cff4ffe2892121f9cecbec266d0280d1458d735dcd108d6c97aa8d26b112 - 0.0% (1.25 KB)
[#008] sha256:a25df849bde126f0582e49aa8f38af9b25b2cba7598ae80695e94555f64dbd00 - 0.0% (1.25 KB)
[#009] sha256:410c1a9891fb2e45792d83f499ce681a0ca1e55e6ff61d350465dbb3e64c78fb - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2025-03-06 10:49:01 UTCInstall update 10.0.20348.3328
2025-03-12 19:02:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-03-12 19:02:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.21-rc1
2025-03-12 19:02:47 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.21-rc1-signed.msi
2025-03-12 19:02:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=630380f85864dc34e1a154acc65e8d9301b0c9c8a8565ee9df5ff0ec17ea0556
2025-03-12 19:03:49 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 19:03:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-03-12 19:03:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-03-12 19:03:54 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.