2024-12-11 21:46:19 UTC
2.59 GB
f7d3087e3d0f441b45a19c34ffc513b9ab472d1312796d3b8ac6411246d7aee5
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.20-rc2-signed.msi
MONGO_VERSION6.0.20-rc2
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 52.57% (1.36 GB)
[#001] sha256:90641eccc9d7a78ab99d123ca3884acb8ffc002eb44bc5e68f261f0810d5202b - 28.46% (755 MB)
[#002] sha256:34bd2b76297102049b3d5b2dbc861a6618820d57a9b45dad482b37f16c81ce79 - 0.0% (1.26 KB)
[#003] sha256:6d00e9db8bf130151bd648464fe7d2653d446eb4793be0cf4326c7c396767b0e - 0.0% (1.26 KB)
[#004] sha256:526886d5c629f066b7128cccb4c19f37db8d428e0351f8dc83e7f717ad90df46 - 0.0% (1.25 KB)
[#005] sha256:33f9b4039998c004d1326c89b0a57b5c78d74a0243498656b1fdc31af19f63d8 - 0.0% (1.25 KB)
[#006] sha256:51376960218e0b5888b3f8a6cffb78692e49ecc07699ebd9d653d89c4eb9d5e1 - 18.97% (503 MB)
[#007] sha256:bc66e3044c5ccd46b9bf963f89f20567394c24507a111c55b2766e6d6ce1d99e - 0.0% (1.25 KB)
[#008] sha256:0748ae48ed3192f339d0b44d611e8b145173cfbe99b3297af87361dcf59f4a78 - 0.0% (1.25 KB)
[#009] sha256:9b1b899f949fb897101f38139220c54c927a8d5bcdc83f89136f3693cd9d7698 - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2024-12-05 01:36:58 UTCInstall update 10.0.20348.2966
2024-12-11 21:45:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-12-11 21:45:26 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.20-rc2
2024-12-11 21:45:26 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.20-rc2-signed.msi
2024-12-11 21:45:27 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=f7d3087e3d0f441b45a19c34ffc513b9ab472d1312796d3b8ac6411246d7aee5
2024-12-11 21:46:14 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.';
2024-12-11 21:46:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-12-11 21:46:19 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-12-11 21:46:19 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.