2017-01-06 23:30:17 UTC
4.64 GB
981059deb1a6a67f05857368b262061c41eb2495379847d50f73bc1c0e8c9059
MONGO_DOWNLOAD_URLhttp://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.11-signed.msi
MONGO_VERSION3.2.11
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 81.7% (3.79 GB)
[#001] sha256:04ee5d718c7adc0144556d740900f778129e41be806c95191710d1d92051a7b3 - 17.15% (815 MB)
[#002] sha256:f0ff1ee712365925730d5bdda1284ee8e09aa3f7969e5f679f4914fe8c712c12 - 0.0% (1.19 KB)
[#003] sha256:ce316b7e67f51b4adbcedfc3f5dbf57ee12375d2f8777babb985cf476b393865 - 0.0% (1.19 KB)
[#004] sha256:dacafce094ef0d4f059600a2da9153068035c624efbdd6fd327060a3868bf853 - 0.0% (1.18 KB)
[#005] sha256:7ce07257ad91b79cf5710c5408c18fdcda7980ee7da7b9607fae303d1a92b85c - 0.0% (1.18 KB)
[#006] sha256:cbd1a800959fa45c55fb3e48607aada12a4e5310afd9f6f42e7200796d3ddeaf - 1.15% (54.5 MB)
[#007] sha256:1fd6b741330eaeb0de18a2cd2a8438b32df3796f9ee6ed168cb18a567e2e64ae - 0.0% (1.19 KB)
[#008] sha256:4e3fef1bb8670eab0b06f67c704ef8bf09f39a2c7ed7beb9b48ec8d8f6eedb45 - 0.0% (1.19 KB)
[#009] sha256:bf879df33c744daf34f699a1800de0df4116efd0b28ed6e25255ffb2b3239f34 - 0.0% (1.2 KB)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2017-01-06 23:28:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.2.11
2017-01-06 23:29:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.11-signed.msi
2017-01-06 23:29:03 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=981059deb1a6a67f05857368b262061c41eb2495379847d50f73bc1c0e8c9059
2017-01-06 23:30:05 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-01-06 23:30:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2017-01-06 23:30:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2017-01-06 23:30:17 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.