2018-12-25 19:06:42 UTC
2.99 GB
2ac5d265c0002405591ee3a74016a4a8a2125f6a96f3f3a619e52d2902b98b6c
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-signed.msi
MONGO_VERSION3.2.21
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 70.95% (2.12 GB)
[#001] sha256:10167262a01401a5b7cd880ca2abdb5a43d0cdb288b23e2bbda0cd16760064e7 - 27.39% (837 MB)
[#002] sha256:f9dda4685a777cd79d2b2657bd58c66d7d630dd04d91295e2867ebf816d48dc0 - 0.0% (1.17 KB)
[#003] sha256:cd32af2389627c9e363cf9ec0eac93196d0e78f1fa50d96c976c673ce1cb79bc - 0.0% (1.18 KB)
[#004] sha256:ba172d84ef4cec2ba687c619fdbce0babcaa7933bcd0c00b247b8466d29f5b7f - 0.0% (1.18 KB)
[#005] sha256:c82cfda95d29e8336b10cb37190cd1c1162f7dc029c6a5f7b5812b216252f38b - 0.0% (1.19 KB)
[#006] sha256:2082ee9423e21c71d1bd28a904653bbacd7809e4fa65f50a5fc094b1d0d461f3 - 1.66% (50.8 MB)
[#007] sha256:3647cc10e692532a6f79199f4b2ad660ac2013341ff061b3eeed868a52a824fd - 0.0% (1.18 KB)
[#008] sha256:010a4c13c08af96de89effad33c07564ba70662a0f1b165186cf2e3a0ebe9784 - 0.0% (1.18 KB)
[#009] sha256:d927b2cee769e6d3f8cb5f5cad1be1cfd53399d479dc3fc5f6c75d8c54ec91f2 - 0.0% (1.17 KB)
Apply image 10.0.16299.15
2018-12-05 22:40:26 UTCInstall update 10.0.16299.846
2018-12-25 19:04:16 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2018-12-25 19:04:17 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.2.21
2018-12-25 19:04:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-signed.msi
2018-12-25 19:04:19 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=2ac5d265c0002405591ee3a74016a4a8a2125f6a96f3f3a619e52d2902b98b6c
2018-12-25 19:06:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (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.';
2018-12-25 19:06:38 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2018-12-25 19:06:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2018-12-25 19:06:42 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.