2017-04-03 21:32:34 UTC
4.92 GB
d246a825f689ed1f690159262e731add47bb5a72993124bc6d2ec20c94d70e4d
MONGO_DOWNLOAD_URLhttp://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.5.5-signed.msi
MONGO_VERSION3.5.5
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 77.08% (3.79 GB)
[#001] sha256:503d87f3196a164f17f7b7c68b76271330e21a7e4fbefd1a578b327ed102258e - 21.73% (1.07 GB)
[#002] sha256:c1d35cf002465f32ac8314f19855d1cc344866fb48071214307794c7e9e006b7 - 0.0% (1.19 KB)
[#003] sha256:2535946ef8cc844b8aea17f426d69c66ecb386d19c2c1fd71f4f78d81b1ed385 - 0.0% (1.2 KB)
[#004] sha256:3827928430cec9e30dfaf89876f3c06373e410bf96e608e6408d1ef0cfb3f075 - 0.0% (1.19 KB)
[#005] sha256:03d78ae5780ee1c63e35f3015e0722069745d49200c1a9554cc348f359ca10b1 - 0.0% (1.2 KB)
[#006] sha256:23a849bc9a80918095d9d943b280b29948ac53a22e8b2e8c98eb4165be63dc64 - 1.19% (60.2 MB)
[#007] sha256:95bb69973582e43e31d15c47d27a321355d07686654c0ed49be9aa68ee77972a - 0.0% (1.19 KB)
[#008] sha256:3469cd1a3cb96e6a1171ee1f086e9921734a0d11bdefed9f1e9b91b8cf6160c8 - 0.0% (1.19 KB)
[#009] sha256:744981ed53e88ffd307164dc4c060f7133b4705474a619d210b780baa41495a7 - 0.0% (1.19 KB)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2017-04-03 21:31:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.5.5
2017-04-03 21:31:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.5.5-signed.msi
2017-04-03 21:31:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=d246a825f689ed1f690159262e731add47bb5a72993124bc6d2ec20c94d70e4d
2017-04-03 21:32:25 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-03 21:32:28 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2017-04-03 21:32:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2017-04-03 21:32:34 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.