2018-12-25 20:07:37 UTC
3.47 GB
c777df7816bb8c9a760fdea782113949408b6f39d72be29a2551fa51e2fe0473
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.1.6-signed.msi
MONGO_VERSION4.1.6
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 61.05% (2.12 GB)
[#001] sha256:10167262a01401a5b7cd880ca2abdb5a43d0cdb288b23e2bbda0cd16760064e7 - 23.56% (837 MB)
[#002] sha256:f9dda4685a777cd79d2b2657bd58c66d7d630dd04d91295e2867ebf816d48dc0 - 0.0% (1.17 KB)
[#003] sha256:f1b29654ce40032d91697ac38afa703bf88e3407f91e9d9a4d0f0af14739fc7b - 0.0% (1.18 KB)
[#004] sha256:804d5f45af69ac4832789c905db5b43c9320c962c70003aad38c8a7e4e155368 - 0.0% (1.18 KB)
[#005] sha256:ac46c4ff6496fe2d5c3511593ca1588f1c07a7bdd00da91d872dad9ea08e3ac3 - 0.0% (1.18 KB)
[#006] sha256:c99d3cc849c85207f13ab06dade87a90cee58038b4d8449889288cfc154ea91a - 15.39% (547 MB)
[#007] sha256:7a3e8b079ed1ca33e18890bdae0327934ed39834aa5df626361744b0ba079648 - 0.0% (1.16 KB)
[#008] sha256:294115dae51ad405923bb87aaff45f93713241edc7c21a7f1a5df6a339d47576 - 0.0% (1.17 KB)
[#009] sha256:cd2267a51998e6f990e4ae36209a01d60be732d5453fa93fbcf86c0a97913400 - 0.0% (1.18 KB)
Apply image 10.0.16299.15
2018-12-05 22:40:26 UTCInstall update 10.0.16299.846
2018-12-25 19:04:16 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2018-12-25 19:43:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.1.6
2018-12-25 19:43:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.1.6-signed.msi
2018-12-25 19:43:38 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=c777df7816bb8c9a760fdea782113949408b6f39d72be29a2551fa51e2fe0473
2018-12-25 20:07:31 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.';
2018-12-25 20:07:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2018-12-25 20:07:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2018-12-25 20:07:37 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.