2017-04-18 17:11:37 UTC
4.92 GB
9b8312e067c076808b6c8fd91e327b13caa0286ae21c1221cf29076ad110b116
MONGO_DOWNLOAD_URLhttp://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.12-signed.msi
MONGO_VERSION3.2.12
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 77.01% (3.79 GB)
[#001] sha256:6d4d50238ed13902c153bc3efc3a22f8a96bca4168ea03624d01da1063728dc2 - 21.99% (1.08 GB)
[#002] sha256:2869ce7d2a7c3a942c84de08ac9b045cb0a8deefa17949b571dffa5cd1cc28cd - 0.0% (1.19 KB)
[#003] sha256:c39f8e8a32c988b1b50badfee9ce4bed82825e5942de2c077b25e61d56fce31d - 0.0% (1.18 KB)
[#004] sha256:49d1f078ce4eeb2cad6f221ab017c4a9b27a9ea6858fba740fdafda1d36edd09 - 0.0% (1.19 KB)
[#005] sha256:3bd9065069ece37ee9b7ac69a61ced0030f1a8b32b9cbbfebff337934d398db9 - 0.0% (1.19 KB)
[#006] sha256:707bef5698f067df5ef209f1b4f09b653c80ff90fdbb38fe92550ecba0976b4d - 1.0% (50.5 MB)
[#007] sha256:72894f2ec93cbb2bca3e9ff0e703a3971a4df3b35c8a3fa8bd6c9693a1805380 - 0.0% (1.19 KB)
[#008] sha256:8f7299148b6150f690a62491fd8bf46a803e36155d93b86d5c8d0e0d215ff766 - 0.0% (1.19 KB)
[#009] sha256:b501afbfdfd8e9ad26fd828f303cec0ac719249002cbeb81ae0ef1cdf1e83d7e - 0.0% (1.19 KB)
Apply image 10.0.14393.0
2017-04-10 15:00:56 -0700Install update 10.0.14393.1066
2017-04-18 17:08:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2017-04-18 17:10:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.2.12
2017-04-18 17:10:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.12-signed.msi
2017-04-18 17:10:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=9b8312e067c076808b6c8fd91e327b13caa0286ae21c1221cf29076ad110b116
2017-04-18 17:11:27 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.';
2017-04-18 17:11:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2017-04-18 17:11:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2017-04-18 17:11:37 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.