2019-07-10 23:20:06 UTC
5.4 GB
af5af79efe540dcddc2825a396c71fcfc4feb463bc9caddccde20ad126321ccc
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.0-rc2-signed.msi
MONGO_VERSION4.2.0-rc2
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 70.17% (3.79 GB)
[#001] sha256:a816556df6ab81da5fe05f09f52050098042b11001ccce80336f3c312a840d65 - 28.25% (1.53 GB)
[#002] sha256:569687b16c6d860ffcbe521b5cf3f3564df9d3abcfe21ebf8b766651bb5d68d3 - 0.0% (1.18 KB)
[#003] sha256:c60897090467892e915908fd4fc60436d8ab13cb89d2a88d249832c603f714fc - 0.0% (1.18 KB)
[#004] sha256:202d4af503f7e6f9d4cc02227328025084b0bed760ee64c4e2f2d1466a182ec1 - 0.0% (1.18 KB)
[#005] sha256:c59c6911af8bd3f6b039b78f0d24ea6c43fe3564cbcb97b5bc8645c9d0753611 - 0.0% (1.16 KB)
[#006] sha256:7a8fb3497e830d01cb3d40711590f140f1300866fb9bae876ba8c8ee5ecc896b - 1.59% (87.7 MB)
[#007] sha256:45bea86a67a87f6d7cbac01297e966ce762feab1f47381153e8a1c3f1ae2174b - 0.0% (1.15 KB)
[#008] sha256:df839bf8bae3233440880be8595f3305bfb5cacf7ff8683cea21869490e90e84 - 0.0% (1.18 KB)
[#009] sha256:fa142d90a04f623b78105585f622598f7bc350fee684a3156d2eeb1255e6026b - 0.0% (1.15 KB)
Apply image 1607-RTM-amd64
2019-07-05 15:56:18 UTCInstall update ltsc2016-amd64
2019-07-10 14:30:47 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2019-07-10 23:10:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.0-rc2
2019-07-10 23:10:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.0-rc2-signed.msi
2019-07-10 23:10:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=af5af79efe540dcddc2825a396c71fcfc4feb463bc9caddccde20ad126321ccc
2019-07-10 23:20: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'); 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', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=all' ); $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:\mongodb\bin\*.pdb -Force; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2019-07-10 23:20:03 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2019-07-10 23:20:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2019-07-10 23:20:06 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.