2023-02-16 01:31:26 UTC
2.1 GB
ca29ee417e920a55a48240ad9dc63cabc4bb334e6e38bb579aee0191d78b3409
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.23-signed.msi
MONGO_VERSION4.2.23
[#000] sha256:6e222c5ada69382aa2b4fe30b23ae56c7e3ada92712109d20f3edd457a6120b6 - 75.9% (1.59 GB)
[#001] sha256:8f77c707e813c8220ab3c92b6eb7b445ee0b1a485686ff62014ae32c17d2b1b6 - 11.33% (243 MB)
[#002] sha256:531f6c3ad9784fc2870ea5ca08c4adccd9318602ed534d822e12b8b658a7b0b6 - 0.0% (1.24 KB)
[#003] sha256:70a5dd75ff977417591f03a7de483cd6ae44d0ae53884213cab93b498b7268b3 - 0.0% (1.26 KB)
[#004] sha256:87786368d0d890b3e4b26099a9ac6745f82e7221af3844f3c97d1ae7002b1a11 - 0.0% (1.28 KB)
[#005] sha256:d9c3650b705655ff2d9282f39315796a763ba5c7b9e5373e90e9e8ae350b2be6 - 0.0% (1.28 KB)
[#006] sha256:6dde082e7ca4115983cc2152ea44a7c5a5d09bfb230d320e10a7e8659ab86471 - 12.77% (274 MB)
[#007] sha256:b3c0cad64a3e8b70a4ee170b8182c6c18d04f1babe24eb9c76fa57f62cffe4a4 - 0.0% (1.35 KB)
[#008] sha256:fa818bb1a5639cd642fad2415574340a6f80ddc1513d5c298e848bb54be58d12 - 0.0% (1.33 KB)
[#009] sha256:1236f234c53ea41ec8ddc3ebf368da202acefb4a9d9888a7b5cfd156e0916869 - 0.0% (1.38 KB)
Apply image 10.0.17763.3887
2023-02-07 10:44:53 UTCInstall update 10.0.17763.4010
2023-02-16 00:42:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2023-02-16 01:28:50 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.23
2023-02-16 01:28:51 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.23-signed.msi
2023-02-16 01:28:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=ca29ee417e920a55a48240ad9dc63cabc4bb334e6e38bb579aee0191d78b3409
2023-02-16 01:31:22 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\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 ' 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.';
2023-02-16 01:31:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2023-02-16 01:31:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2023-02-16 01:31:26 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.