2020-06-10 19:32:26 UTC
5.77 GB
d085db55ea34452617e73a5d7ad80fbc4b9eaf75990e49080a7c3ced13fbb42c
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.7-signed.msi
MONGO_VERSION4.2.7
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 65.72% (3.79 GB)
[#001] sha256:375fbabb84945635805b46a02a17ac15a3177bcaae7404cfab5f1ceb0460cb60 - 26.87% (1.55 GB)
[#002] sha256:30efe9163d37226b077b25cd93b088cebd2ddbaadf173d143b9fe0ddecaeae53 - 0.0% (1.12 KB)
[#003] sha256:deba30833146b34eaaddc3dfe8bc7e20a962a8a99683aceda6d729d92b1ef69b - 0.0% (1.12 KB)
[#004] sha256:6ea16fd5ed30cd201e49ee9e501ce5ea00dd4ceda3fa7ec9338cffc185660c4e - 0.0% (1.13 KB)
[#005] sha256:00d98608d796c856fb7bb29dad42ffbf1ddfce2455ac4816b877d8f44282de6e - 0.0% (1.12 KB)
[#006] sha256:6e51b295ad82146db41e893e86888afe5cb66ec1d52d83b288867a98ca6181a3 - 7.41% (438 MB)
[#007] sha256:7f33c3188144c895a6b098e4b3aeba2c962bef971a9e97fafbe6f9655a3ad4a9 - 0.0% (1.1 KB)
[#008] sha256:f2d6cf437294d3ca3355b148a020516f4d20e8dcd6c8f5f3a4afb6fafdccb433 - 0.0% (1.13 KB)
[#009] sha256:4958d78624160751c4751755488c142c33d95b16799dbbd5238f9a733e80df1d - 0.0% (1.1 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 19:13:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.7
2020-06-10 19:13:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.7-signed.msi
2020-06-10 19:13:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=d085db55ea34452617e73a5d7ad80fbc4b9eaf75990e49080a7c3ced13fbb42c
2020-06-10 19:32:22 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 19:32:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2020-06-10 19:32:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2020-06-10 19:32:26 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.