2022-06-15 21:21:16 UTC
2.75 GB
7259970fbba704936884a89ef90edde12e54c5ff59138185af82a2a66e91d28b
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.21-rc0-signed.msi
MONGO_VERSION4.2.21-rc0
[#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:ac9aadd599c45225adf35fb8804ce6e38841ff4438227b117a5410e6059f3052 - 0.0% (1.39 KB)
[#004] sha256:64ccc9544e3cc2f201a127bed1075b6a83afaae6090a627052d49cd1e96023ee - 0.0% (1.38 KB)
[#005] sha256:17320e12014088e6b6fbf0826a17c82adf78c5fc6838215efe7d3a92d0345ef0 - 0.0% (1.4 KB)
[#006] sha256:7018ca205bef2ff38e7630a9f142cd814848f64994033011c1dcb01a9d2e2718 - 9.67% (272 MB)
[#007] sha256:5b8273e522f77c52a767d0767631bc85e744da29bbe3457e87b65e98090411e9 - 0.0% (1.39 KB)
[#008] sha256:22ae0dbb76f039a3d320e25b8c41257e1eab3a89e0d0fadc171f58da926fafd7 - 0.0% (1.4 KB)
[#009] sha256:8a5d83e141714251f681419ff0beff3159994bfd41f89cba9010df919c9041f5 - 0.0% (1.39 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:18:28 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.21-rc0
2022-06-15 21:18:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.21-rc0-signed.msi
2022-06-15 21:18:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=7259970fbba704936884a89ef90edde12e54c5ff59138185af82a2a66e91d28b
2022-06-15 21:21:12 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:21:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-06-15 21:21:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-06-15 21:21:16 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.