2022-09-27 01:18:05 UTC
2.45 GB
422b0bd5db92617d1e668bec2d6083b2ee0dc165afc7ca2fa4ac9d8a92aab5e4
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.23-rc1-signed.msi
MONGO_VERSION4.2.23-rc1
[#000] sha256:97f65a0ec59e643faf84024aa713a9be059322380315fda829756bbbd96d6258 - 54.54% (1.34 GB)
[#001] sha256:4486102fd3820ed9527fa3e7bfefa8305c2f054e65b46dffe9675755e3d8f288 - 34.55% (868 MB)
[#002] sha256:a16438b2cffe7980c606769d49003f7f1c4d27549445f824511a81834513616a - 0.0% (1.39 KB)
[#003] sha256:5994a272dfdc13ddf66f542e01f249a7b52b03fdc58bc46e2a681b43f5242cfa - 0.0% (1.35 KB)
[#004] sha256:8a5ac195304f9cab7e2cf4badb856db6a2d597f9ed08a14762780417a56378b4 - 0.0% (1.39 KB)
[#005] sha256:7994b625d9d869e1d8968146cdb3cb74f4d940ea789861c4f28a88b54c160d3f - 0.0% (1.39 KB)
[#006] sha256:afd4e16f1d712b60377537fbf7f7c47257f5fbf51e8b0f66abdcaf4285eab099 - 10.91% (274 MB)
[#007] sha256:e044cf41f7dbc8f90aa591620ff5c92eb28bf9c52e77565a860a8e11e89b9283 - 0.0% (1.39 KB)
[#008] sha256:b5d4977f30a3b55bd21da1c7f313193cbdebfb433cf2824ecdfed1e135f7e04a - 0.0% (1.39 KB)
[#009] sha256:339df4802c1601f5b796e0d44cfe94b5b83100fe4abcae58e29dca3e9e16795a - 0.0% (1.34 KB)
Apply image 10.0.20348.643
2022-09-08 20:30:55 UTCInstall update 10.0.20348.1006
2022-09-14 13:31:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-09-27 01:16:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.23-rc1
2022-09-27 01:16:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.23-rc1-signed.msi
2022-09-27 01:16:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=422b0bd5db92617d1e668bec2d6083b2ee0dc165afc7ca2fa4ac9d8a92aab5e4
2022-09-27 01:18:01 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.';
2022-09-27 01:18:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-09-27 01:18:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-09-27 01:18:05 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.