2021-09-20 22:30:01 UTC
6.1 GB
6d3859195559b8352dcf4a104b7ddda795e406ddf92966b2531d7987f8fdc5dd
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.17-rc0-signed.msi
MONGO_VERSION4.2.17-rc0
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 62.09% (3.79 GB)
[#001] sha256:e9b8281bf21e46c781fb54e4f15f5728e2c44dea4219c9e6deeb732f1d909d3b - 33.58% (2.05 GB)
[#002] sha256:5796468f91731000e9a76e836156826a1cd4ed963bcd80e6558c538a12c2132d - 0.0% (1.38 KB)
[#003] sha256:50f6bfa375c95d6e82412256484fd68997d15b43900663d7ee08c0cd245480d6 - 0.0% (1.36 KB)
[#004] sha256:4bde6c6db8e5a20648c927ca6a28e5dffa6f2cc346992866e088ec88c445f02a - 0.0% (1.39 KB)
[#005] sha256:43e352b47b3e6ce33939d33973e03847f198e77cec6ad6c5dc0c170d2cd6e131 - 0.0% (1.4 KB)
[#006] sha256:84bbba8c6a7e53e3c80f1f90094ff08d33b01c1f7515ae19c279b5edb6d3b35b - 4.33% (271 MB)
[#007] sha256:ccd074390f8d32b23c861154ed28427f25d69c4d8bb0b99cdd5ff1690cff6d12 - 0.0% (1.38 KB)
[#008] sha256:519773eb92c79f8994df44bdd965d7eb56d6b30a83195f0fd2045cace1cae236 - 0.0% (1.39 KB)
[#009] sha256:28ec16b58ec12dc7df85b3e516b14e8ae343521e84405f793c5372ec2f5421d8 - 0.0% (1.36 KB)
Apply image 1607-RTM-amd64
2021-09-13 01:03:00 UTCInstall update ltsc2016-amd64
2021-09-15 13:26:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2021-09-20 22:27:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.17-rc0
2021-09-20 22:27:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.17-rc0-signed.msi
2021-09-20 22:27:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=6d3859195559b8352dcf4a104b7ddda795e406ddf92966b2531d7987f8fdc5dd
2021-09-20 22:29:57 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.';
2021-09-20 22:29:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2021-09-20 22:30:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2021-09-20 22:30:01 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.