2020-03-11 00:25:53 UTC
5.76 GB
ca8d3cb9472275858f867a67dfea0ae107d8a20464dc415afc9d3abcefd5fbe9
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.4-signed.msi
MONGO_VERSION4.2.4
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 65.82% (3.79 GB)
[#001] sha256:846a2223e9e7a88a2a07d706553f144d380483d72fb9f0697c4fcd71773a8693 - 26.8% (1.54 GB)
[#002] sha256:0961c48658cd7865bcf6c05285dfbe8ad89cd52059088d7f4eed6fde1bb2b385 - 0.0% (1.16 KB)
[#003] sha256:cc3a10757422b5d850cbe939dd353f903ca50006bccca195621b11ddf227cb88 - 0.0% (1.19 KB)
[#004] sha256:e70e905880813d54161bd646fedbcde22715590993d8721ede9877d97e505ac5 - 0.0% (1.18 KB)
[#005] sha256:b9b0c201a0e6e8f55f58e199e8c5470558401f06876f6a6a685646129924ea8d - 0.0% (1.19 KB)
[#006] sha256:96a1356a7686415b02cc44972bdd3714f1ac391d6a21cccdf55bb010f3896745 - 7.38% (435 MB)
[#007] sha256:99edd93a9752c3e7b2df5af665a64d991c161b9869a75bc2d8825883f0c9cd1c - 0.0% (1.19 KB)
[#008] sha256:3cf719334db9929acd365594ca322225e81451dee29304714c5622a8fd96dc09 - 0.0% (1.2 KB)
[#009] sha256:3a29c56d5bc6bcde92f0c8e690a22028a15251a22fea7352dec78f277e8817f1 - 0.0% (1.17 KB)
Apply image 1607-RTM-amd64
2020-02-14 21:42:00 UTCInstall update ltsc2016-amd64
2020-02-20 05:12:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2020-03-10 23:46:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.4
2020-03-10 23:46:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.4-signed.msi
2020-03-10 23:46:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=ca8d3cb9472275858f867a67dfea0ae107d8a20464dc415afc9d3abcefd5fbe9
2020-03-11 00:25:38 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.';
2020-03-11 00:25:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2020-03-11 00:25:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2020-03-11 00:25:53 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.