2019-06-12 16:05:30 UTC
5.4 GB
a6b27a8ce7ba1d6ebe734e7e5c0f644317ca684a0e4530250b9a2201f331bc59
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.20-signed.msi
MONGO_VERSION3.4.20
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 70.15% (3.79 GB)
[#001] sha256:b39d5d9be066f0f1bd27e6ca44acdf71d85b81b878665ee46215ddcb7ded74a0 - 28.27% (1.53 GB)
[#002] sha256:a93a9306787f35923544db17afaac32adba5f64cbbb54158d169119bec4293a0 - 0.0% (1.16 KB)
[#003] sha256:472036d5439a3caa2ec83cde1823ead149fce6be36d9702bb7add93c8d64148e - 0.0% (1.18 KB)
[#004] sha256:f15e83d6684afa5ea93dbacd1b0347a408647bcd00ea93ff470ff7c5dba7aef5 - 0.0% (1.16 KB)
[#005] sha256:e37e08c0c655bea18d1e0ddfaa7f2e2687f4c5c70977a2fe51b2b924874f74d7 - 0.0% (1.17 KB)
[#006] sha256:2d2941bb4d0a91b1f4ea997930074849e563c7c8a18c633f868aa229807b9887 - 1.58% (87.7 MB)
[#007] sha256:e0eaeac2707838c97b7146b2e8c0fb4bf0d331154d4973cec2cfc4ceaa29ee6c - 0.0% (1.16 KB)
[#008] sha256:469506c23bba16b4c0940e5ed24470123c591b5fb077b9cea36739ed5fe9bc82 - 0.0% (1.16 KB)
[#009] sha256:19f8ea3d521f019e792523cb4f9d2b5f3c13924e2ae0019418315bd6541f03d4 - 0.0% (1.12 KB)
Apply image 1607-RTM-amd64
2019-06-06 17:26:33 UTCInstall update ltsc2016-amd64
2019-06-12 16:02:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2019-06-12 16:02:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.4.20
2019-06-12 16:02:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.20-signed.msi
2019-06-12 16:02:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=a6b27a8ce7ba1d6ebe734e7e5c0f644317ca684a0e4530250b9a2201f331bc59
2019-06-12 16:05:24 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-06-12 16:05:27 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2019-06-12 16:05:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2019-06-12 16:05:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod"]
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.