2016-11-21 20:27:24 UTC
4.36 GB
83270be71ac2b8b45b1fe73ee7e143749cef4209975802825b07d47b0261727e
MONGO_DOWNLOAD_URLhttp://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.0-rc4-signed.msi
MONGO_VERSION3.4.0-rc4
[#000] sha256:9c7f9c7d9bc2915388ecc5d08e89a7583658285469d7325281f95d8ee279cc60 - 79.81% (3.48 GB)
[#001] sha256:d33fff6043a134da85e10360f9932543f1dfc0c3a22e1edd062aa9b088a86c5b - 18.77% (838 MB)
[#002] sha256:f24cd6bb1240a6a8641fa44a4bbea3e59d3729b9e1513ca48370c4576b6fddea - 0.0% (1.19 KB)
[#003] sha256:19e080ef1f37e1bff1eb81e8072a1f794030887e9ca48e7ce042fd07cae8c618 - 0.0% (1.18 KB)
[#004] sha256:414818f195af447a88a1de776efbe5e7a53c99e4c28dec9a0c450b3f33e2004d - 0.0% (1.19 KB)
[#005] sha256:1806bf2122f55cc83d20beac9dd53acaeca56d7dbc5437706d9fcbaa14f30701 - 0.0% (1.18 KB)
[#006] sha256:cd6afae73201dcb6c7bc4efa100fe1fc72a99f69de62968162909ee63bcd6f02 - 1.42% (63.6 MB)
[#007] sha256:334fc8da1091c21b63903cfc22cdcf6d9817396c8f97380c8ef71c7b1865291f - 0.0% (1.19 KB)
[#008] sha256:236b12d61e2ea4422dc5530f57ccafe084a8da439e00b503e90f9a7e76789176 - 0.0% (1.19 KB)
[#009] sha256:e2e33e79c6e18a4e8bbdbd1e9e04a35c4b19edef46023b9aba5eab0ab5a60153 - 0.0% (1.18 KB)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2016-11-21 20:26:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.4.0-rc4
2016-11-21 20:26:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.0-rc4-signed.msi
2016-11-21 20:26:17 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=83270be71ac2b8b45b1fe73ee7e143749cef4209975802825b07d47b0261727e
2016-11-21 20:27:11 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.';
2016-11-21 20:27:17 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2016-11-21 20:27:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2016-11-21 20:27:24 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.