2018-10-16 10:10:24 UTC
2.99 GB
8262f88d082f48c4da85708ec9fa1570910d1957e5a71048d0304c9a933c25d8
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.17-signed.msi
MONGO_VERSION3.4.17
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 70.94% (2.12 GB)
[#001] sha256:ddd7a4737dfbb59b49c30480146e7f0a61842409755bd479b63004c5643d0ed3 - 27.03% (826 MB)
[#002] sha256:bb0cfc3f1dafb85be3cada2e98abf803f8e5eadcc61125fa7266a93c29d873e7 - 0.0% (1.17 KB)
[#003] sha256:e3b559a1808cf384fac2e9e00c00d76b5a5470637b7ae7de6c128b8ac19e0257 - 0.0% (1.16 KB)
[#004] sha256:291fe6868acb415a136e2b2fa875997ac71b5b42bc1435f4850ff0999bc640e9 - 0.0% (1.17 KB)
[#005] sha256:e843c1f4661989a22085845c7bb6ca434ac5dab9554324ed953a006fe8bb50c6 - 0.0% (1.17 KB)
[#006] sha256:ff32309e2db7bd4ac5bddf4a690f0ddb3ac9ae3ab742900f511c3666f995342a - 2.03% (62 MB)
[#007] sha256:8ba93c8ce8153228dfa8827e246e2311fc0ad2f26202fadc63a77d1d470f7a37 - 0.0% (1.17 KB)
[#008] sha256:f37ef95ae5ad2283e5714a837ffa8f6f9aa4c503469e334f728698e41f1ab9e7 - 0.0% (1.16 KB)
[#009] sha256:fcd82f27b7b901160991165aac1ac0f42065408789b1e9858d20a3aba8572545 - 0.0% (1.16 KB)
Apply image 10.0.16299.15
2018-10-01 22:02:14 UTCInstall update 10.0.16299.726
2018-10-16 10:03:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2018-10-16 10:08:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.4.17
2018-10-16 10:08:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.17-signed.msi
2018-10-16 10:08:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=8262f88d082f48c4da85708ec9fa1570910d1957e5a71048d0304c9a933c25d8
2018-10-16 10:10:19 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-10-16 10:10:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2018-10-16 10:10:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2018-10-16 10:10:24 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.