2022-06-15 21:28:24 UTC
2.75 GB
8a41f7e20dc9a7046f5fc2d189dce853fe2c38466a5e4b9b2b659bc561a11794
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.20-signed.msi
MONGO_VERSION4.2.20
[#000] sha256:b111c3320c949bea81612bf4554f1b6592c2f504920b5bf57ba340a1d4d52c93 - 63.67% (1.75 GB)
[#001] sha256:fc6ae6c5aa2b4920ae68469c5e7e7c3a3c85e5eaafc24660e7b3adb21d6fce77 - 26.66% (750 MB)
[#002] sha256:14def1e29581c5e5d0af7fdf9ff44ed6536e79561eb0f0cdff89e322fb87c423 - 0.0% (1.39 KB)
[#003] sha256:1b83a034553a4907836d7543d7198ad9a644a8bfa599d7606d0ac2fb1a2a9c43 - 0.0% (1.28 KB)
[#004] sha256:087ae9f95a975bd2b6af41256dbcc19c6a0bd20c2fb35407697e7db6480f758f - 0.0% (1.32 KB)
[#005] sha256:a1095de4dd1ff67ab14e0c4a172e5fb179b3dba0518281123ab6cb94c60f77c1 - 0.0% (1.36 KB)
[#006] sha256:a1a086e42d8db5e9ec2a76ce4e57b9750660d15269ccc8ebb6ba8670fa4d5290 - 9.67% (272 MB)
[#007] sha256:0713ddbdc69ba77ccbb5f522ab61fd64642e4dd1e89bf8b792d8dd5c2004d0d3 - 0.0% (1.27 KB)
[#008] sha256:3890bfd38424782b9010e49208941957728ade0226e61728afd2f781f0c3c9fe - 0.0% (1.31 KB)
[#009] sha256:fa59dfd8a3b76f1c6a384c4b89899fb6b87fe115771a9470b8e9fbd694fe34d8 - 0.0% (1.29 KB)
Apply image 10.0.17763.2803
2022-06-09 19:41:03 UTCInstall update 10.0.17763.3046
2022-06-15 14:40:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-06-15 21:25:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.20
2022-06-15 21:25:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.20-signed.msi
2022-06-15 21:25:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=8a41f7e20dc9a7046f5fc2d189dce853fe2c38466a5e4b9b2b659bc561a11794
2022-06-15 21:28:20 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,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongo.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.';
2022-06-15 21:28:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-06-15 21:28:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-06-15 21:28:24 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.