2020-09-11 21:22:59 UTC
2.4 GB
4375a8fa0d87dd0b16ab40a20487ddb5870d6f056d42ef654debf3e7fab6ae40
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.19-signed.msi
MONGO_VERSION3.6.19
[#000] sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f - 66.6% (1.6 GB)
[#001] sha256:c3aff44502467b94164764856a6feb805fc5c79ff66012eebdd7da3f180e3138 - 24.53% (604 MB)
[#002] sha256:1df31adcc7026c3bf0cb32832a3f307dd6e1e54b8b3e050f8a73b5caee674d88 - 0.0% (1.1 KB)
[#003] sha256:5a1aa7beacb3c01eb97a75bcf3fbf2d6b9990a2c4427a2e87f3aa299d7c4f3b3 - 0.0% (1.1 KB)
[#004] sha256:02c5d71baad1176ea57cd07c3a1393b7237d5e30d51b46a5094c7879a67fadba - 0.0% (1.1 KB)
[#005] sha256:9e9a58cd18c7fc5ef6e7584fa7668c5b030b1fbbbc2e8110267bf54f01c0c040 - 0.0% (1.1 KB)
[#006] sha256:2c307ef330f1c43817b83d7b2d0ddba98809750463c6a7aef122dbb1e85a1bf8 - 8.86% (218 MB)
[#007] sha256:2fc69a974ebe15fcdc6d904efc851eb3032dc8bf40621714acf1bec0dbeb5cd2 - 0.0% (1.1 KB)
[#008] sha256:8cc16b7b660b50e38bd7a07c0a927e1e3c489a2dcf6884b109a4813b2fe9daad - 0.0% (1.09 KB)
[#009] sha256:c3ce7edd04e4cab4c85b7c935e647be36b271da16c02f855c15535d72b7c6858 - 0.0% (1.1 KB)
Apply image 1809-RTM-amd64
2020-09-03 05:59:01 UTCInstall update 1809-amd64
2020-09-09 13:15:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2020-09-09 20:41:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.6.19
2020-09-09 20:41:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.19-signed.msi
2020-09-09 20:41:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=4375a8fa0d87dd0b16ab40a20487ddb5870d6f056d42ef654debf3e7fab6ae40
2020-09-11 21:22:55 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:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2020-09-11 21:22:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2020-09-11 21:22:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2020-09-11 21:22:59 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.