2020-06-10 18:58:17 UTC
5.76 GB
8f326aff375480941e48852314fbfd4e4e186de6556d753cf09b890ab9241ecf
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.18-signed.msi
MONGO_VERSION4.0.18
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 65.83% (3.79 GB)
[#001] sha256:375fbabb84945635805b46a02a17ac15a3177bcaae7404cfab5f1ceb0460cb60 - 26.91% (1.55 GB)
[#002] sha256:30efe9163d37226b077b25cd93b088cebd2ddbaadf173d143b9fe0ddecaeae53 - 0.0% (1.12 KB)
[#003] sha256:2b51b25133003096cdbf8d61eae1277aa154b1b06a02fa39b59266aa2c680fa2 - 0.0% (1.12 KB)
[#004] sha256:f4fda980d923317dd70eaad93d08e1ab8d33dfa7655a269bce12ab9d8eccf49b - 0.0% (1.12 KB)
[#005] sha256:3569e5ab8b731ba3b5d5a8c1050ce3a9d7eb53a49fb95f599703b3326eee0fc2 - 0.0% (1.12 KB)
[#006] sha256:dbfe218ad24930c8f126ac4fc972a045e310a1615267df56cac11810520040ee - 7.26% (428 MB)
[#007] sha256:8c3b1f6ab7c2302b647413a99313a4f1b0bb811827be04716b90534693a38092 - 0.0% (1.1 KB)
[#008] sha256:fd667cce715896d9fb3e19e4ee143925e0760c1e4a832312ffbcbddeef1cd870 - 0.0% (1.12 KB)
[#009] sha256:0883248dc0f956c2b2f974cee3cddf85699a9bea3b1522ccf03cfd4593ced081 - 0.0% (1.09 KB)
Apply image 1607-RTM-amd64
2020-06-01 18:53:00 UTCInstall update ltsc2016-amd64
2020-06-10 12:52:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2020-06-10 18:40:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.18
2020-06-10 18:40:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.18-signed.msi
2020-06-10 18:40:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=8f326aff375480941e48852314fbfd4e4e186de6556d753cf09b890ab9241ecf
2020-06-10 18:58:13 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', '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.';
2020-06-10 18:58:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2020-06-10 18:58:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2020-06-10 18:58:17 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.