2025-05-22 23:15:07 UTC
2.61 GB
e0f664c1075a3d3c4ddc0d902dbc86d1a39b6e9991c5b86760d7054b62513d2e
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.21-rc0-signed.msi
MONGO_VERSION7.0.21-rc0
[#000] sha256:803f4a9590cb9c635813cbd0ee89190f92d5fe4c7589711cf468879e42ce02ba - 61.44% (1.6 GB)
[#001] sha256:a95a939635fd6bec8c1562dcdbdde2fdb64095d1be9873313939c878db6f7279 - 16.55% (442 MB)
[#002] sha256:8660cf34db19acab2a041c9a1c5c4cec3bd5777a8acbf7f2885f4293d4feecc0 - 0.0% (1.27 KB)
[#003] sha256:6c95987059d0abee5764349bf4e657aaaf9427021e095a20c8718394b28acd43 - 0.0% (1.26 KB)
[#004] sha256:5d48e5579f9aa3ba343e9e01ae32970c2ead60fd99a3ddc73889319b757e295b - 0.0% (1.26 KB)
[#005] sha256:cf6b85bc60afdf12eda226fb4db332b6194d3a5bacf1fe7b516fb1bf5c699c59 - 0.0% (1.26 KB)
[#006] sha256:5668f7be605ce4f9965a7a4db6cb57013922d28fb03eac16ca2f3e2f4653b61b - 22.01% (588 MB)
[#007] sha256:ec8f365c5726b00c8c5e4778214afc2b97e5378ac95bd80f35dd0ed5be87b88f - 0.0% (1.25 KB)
[#008] sha256:f45727f79e69411371b3947a270d1506c31169345912b44b7d56ea7f44f689ee - 0.0% (1.25 KB)
[#009] sha256:c8f6d39963caf6dee0e40e9520e109cd0166038f9e3076726163cf5159ca2261 - 0.0% (1.25 KB)
Apply image 10.0.17763.6293
2025-05-09 13:51:15 UTCInstall update 10.0.17763.7314
2025-05-22 23:13:20 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-05-22 23:13:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.21-rc0
2025-05-22 23:13:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.21-rc0-signed.msi
2025-05-22 23:13:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=e0f664c1075a3d3c4ddc0d902dbc86d1a39b6e9991c5b86760d7054b62513d2e
2025-05-22 23:15:05 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-22 23:15:05 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-05-22 23:15:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-05-22 23:15:07 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.