2020-08-12 19:42:55 UTC
5.76 GB
fcdadb2d83e21551da2e8302f6cdab69ac840d4b1cca2cb353853c5d81aebac6
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.19-signed.msi
MONGO_VERSION4.0.19
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 65.78% (3.79 GB)
[#001] sha256:b2151f69990007e1df0a2a0a68997c72a9ce7546d653d17a482a51cc3323c047 - 26.96% (1.55 GB)
[#002] sha256:44c31749d2d4be3aede3e54780d9e54b5a7eeaa617e1adf027e92fce2ebf0f2a - 0.0% (1.11 KB)
[#003] sha256:1aba5d3ab869c436059665befb0e63d8415de6f027d529165832c88ad898cb0a - 0.0% (1.12 KB)
[#004] sha256:ba609e0c5850eba0d0a0349bbf8ea5b45f6cc87bc68080259b92ea766480af61 - 0.0% (1.14 KB)
[#005] sha256:35ed92018c4366eb2f25cac372642ffe11f70cb297d33d49d6107a294cae5d54 - 0.0% (1.12 KB)
[#006] sha256:b6cea409daa6e5e1bd0d72df82a5ccdff4e3dc4d6299a1921abed7ebbb93e1a1 - 7.26% (428 MB)
[#007] sha256:ceff6a77051e73dfaf087e9ce1a813e1610b37a3d7e23661210c140193f9e51d - 0.0% (1.1 KB)
[#008] sha256:0ce1c5b301541417258e414f272aaa5847fbee985a7a05505915ab402e2286b5 - 0.0% (1.1 KB)
[#009] sha256:a0de86af974b9636b12600fb7f17dde3e6f589e1f20d81a54f4dfa39d25c2cdb - 0.0% (1.1 KB)
Apply image 1607-RTM-amd64
2020-08-05 13:27:00 UTCInstall update ltsc2016-amd64
2020-08-12 12:23:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2020-08-12 19:24:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.19
2020-08-12 19:24:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.19-signed.msi
2020-08-12 19:25:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=fcdadb2d83e21551da2e8302f6cdab69ac840d4b1cca2cb353853c5d81aebac6
2020-08-12 19:42:52 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-08-12 19:42:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2020-08-12 19:42:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2020-08-12 19:42:55 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.