2018-08-17 09:24:15 UTC
5.19 GB
dae23beba9f896444c462881404f15920d02add866ff4b50852f892c9f4f84f1
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.20-signed.msi
MONGO_VERSION3.2.20
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 73.07% (3.79 GB)
[#001] sha256:6631c2d2a60cd7ee5b334c2725b03e4d4976abb9a19c8e8dc9b806b3752745a6 - 25.89% (1.34 GB)
[#002] sha256:b95dd3ea2455375b05a0040130b4b3f2bd839787743ff33b9d31af75610902b1 - 0.0% (1.17 KB)
[#003] sha256:1eec1a1d17e32db573964e6397fc995b0d6cbc349ce7f449eb389be78628a9c2 - 0.0% (1.17 KB)
[#004] sha256:caa595488d8c47888d7ebecc2da2f6764c927350528ed870490a5581472ab983 - 0.0% (1.19 KB)
[#005] sha256:9448a8157218720475d921ea12eb6e5a06635e17eaccee93e7d85abcf11372b9 - 0.0% (1.18 KB)
[#006] sha256:4c951d7f478a24ca430011664473e5765218216b36b25163f130be45e29bcdf3 - 1.04% (55.3 MB)
[#007] sha256:ac36c7eb35ed5cebe52efe64a04f370a31062d1e39a0c85227cf1e11414c477f - 0.0% (1.17 KB)
[#008] sha256:3ddbaf2a572bccc852e3682364fd5861e6b30b40396563f8f273647cf209c603 - 0.0% (1.17 KB)
[#009] sha256:c51bd0a9782566b47cc00f21ad6c97720e77dda6599d49fbf2090ddff115b414 - 0.0% (1.17 KB)
Apply image 10.0.14393.0
2018-08-13 17:52:23 UTCInstall update 10.0.14393.2430
2018-08-17 09:21:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2018-08-17 09:21:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.2.20
2018-08-17 09:21:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.20-signed.msi
2018-08-17 09:21:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=dae23beba9f896444c462881404f15920d02add866ff4b50852f892c9f4f84f1
2018-08-17 09:24:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); (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-08-17 09:24:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2018-08-17 09:24:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2018-08-17 09:24:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod"]
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.