2017-07-28 18:59:41 UTC
4.99 GB
c02704728c40d50c66e3d3c3b1e4c27dc70cbe67722e28c7f537cba05f98309c
MONGO_DOWNLOAD_URLhttp://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.6-signed.msi
MONGO_VERSION3.4.6
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 75.96% (3.79 GB)
[#001] sha256:e29afd68a947fc566b71a432a6df352eea9e59eb221c3cb9f6bf5a4df206571e - 22.87% (1.14 GB)
[#002] sha256:c2e2fab7692964a46adf839b6fe66a115f2c7617697a351e412c382936629b9f - 0.0% (1.2 KB)
[#003] sha256:b1a326f5acbdf7eaf2ef9aa74b41cda6c4657109935cd96ac5f4b1cd34b13289 - 0.0% (1.19 KB)
[#004] sha256:af2d47cb97736a59df08a2844ab01e9f0bbda950f680910b1f0ca296701558c6 - 0.0% (1.19 KB)
[#005] sha256:f20bcdfe4e85dba51705399515b8b8e9b6ffa11d234b0aa5154ebb98b521fcd4 - 0.0% (1.18 KB)
[#006] sha256:044e57c275281014af873f7d076cbefe831648fd9f6fccb5d5bfb66c22efe312 - 1.18% (60.1 MB)
[#007] sha256:6fa08124becba7f5a9a11c979f4512fc2f3c49feb363aa69a4a21777df0d624c - 0.0% (1.19 KB)
[#008] sha256:01c5271e9a29c7fef7c71979d08f45edf0b2cc38291dd27cb82f2c7b9b5ecbab - 0.0% (1.19 KB)
[#009] sha256:134dab99ff1a8729d60fcaf20d175bea8c1a3acc47f19283156c903a48065c42 - 0.0% (1.19 KB)
Apply image 10.0.14393.0
2017-07-10 22:35:45 UTCInstall update 10.0.14393.1480
2017-07-28 18:55:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2017-07-28 18:58:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.4.6
2017-07-28 18:58:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.6-signed.msi
2017-07-28 18:58:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=c02704728c40d50c66e3d3c3b1e4c27dc70cbe67722e28c7f537cba05f98309c
2017-07-28 18:59:29 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-07-28 18:59:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2017-07-28 18:59:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2017-07-28 18:59:41 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.