2016-10-12 19:30:40 UTC
4.21 GB
be537b5fdc1763bb8640ac6384a44fa787c12499cfa648338c0695c5752de18a
MONGO_DOWNLOAD_URLhttp://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.0.12-signed.msi
MONGO_VERSION3.0.12
[#000] sha256:9c7f9c7d9bc2915388ecc5d08e89a7583658285469d7325281f95d8ee279cc60 - 82.61% (3.48 GB)
[#001] sha256:de5064718b3f2749727c8b5ffddf2da7698189277afe0df6fc0a57ad573bca0f - 13.55% (585 MB)
[#002] sha256:ce8c033b9d9ab0f42b7bc1457fc9094bbf37079117ad712092b3e48f11a6e218 - 0.0% (1.18 KB)
[#003] sha256:0574e57a032f6716dc9a5ead72d392e1b5d8ab6f46171ef8e3ad5f0e6eb2c270 - 0.1% (4.31 MB)
[#004] sha256:f925e25f58702c8050f9bcfeae7cec9f012f6f49a3ec443a3bfc9e9f3cab012d - 0.0% (1.19 KB)
[#005] sha256:db219e773ae40ec840f29ff2d751a9378337701d1539c3f71d96978feee4a9be - 0.0% (1.2 KB)
[#006] sha256:19be0e402a62a7617ee07da38be5244584c216459a6a8545e7382d1029f6d0ab - 0.0% (1.19 KB)
[#007] sha256:c1ad67227b80331e3e16280c9dc37e82b713bb5a5feeac2dfdf3ce20978f0001 - 3.74% (161 MB)
[#008] sha256:461ec4002f2b822e37e3534a01febcbb29959dd7b4d25b71dd9f05d406d7279f - 0.0% (1.18 KB)
[#009] sha256:8270cc8e0cd11d7569f41da073ddb4f6d803a202d9f641802d4c0bff23a0cdb5 - 0.0% (1.19 KB)
[#010] sha256:58a277be8e55e9879041efee927731b35b7f52c4475af1ecb530c00bc5b6960a - 0.0% (1.19 KB)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2016-10-12 19:27:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; [Environment]::SetEnvironmentVariable('PATH', 'C:\mongodb\bin;' + $env:PATH, [EnvironmentVariableTarget]::Machine);
2016-10-12 19:27:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.0.12
2016-10-12 19:27:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.0.12-signed.msi
2016-10-12 19:27:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=be537b5fdc1763bb8640ac6384a44fa787c12499cfa648338c0695c5752de18a
2016-10-12 19:30:22 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' ); Write-Host 'Verifying install ...'; Write-Host ' mongo --version'; mongo --version; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2016-10-12 19:30:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2016-10-12 19:30:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2016-10-12 19:30:40 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.