2019-02-14 10:21:10 UTC
3 GB
b268ab57eebc13835d945e7e90338b4d2076ea5eb36169d6253af9e6e76061a4
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.19-signed.msi
MONGO_VERSION3.4.19
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 70.56% (2.12 GB)
[#001] sha256:effca3ebc3a86f19a139eb7047c6e97d2fe4c941737e8d9698820d0491ccf530 - 27.11% (833 MB)
[#002] sha256:c4273f2f648bb455b5339bc8719afa5ca050432c7fd18636bbea664f8f035578 - 0.0% (1.18 KB)
[#003] sha256:071f1327904aa790f0bd441be0d9754ebc98137f920cc69d24310834bc3c9788 - 0.0% (1.17 KB)
[#004] sha256:07958462d2843391d8bb5e1dab91d1f3d31aa98031c3c5d82b12bc44fda56ff6 - 0.0% (1.18 KB)
[#005] sha256:2d6baef59f8bcff03cd8c650085cedcde7a351ac2f84f2e7bcf91b6753b634e0 - 0.0% (1.18 KB)
[#006] sha256:38133668acc5713efd41b33e7d2d6cab073cda34648318db9dd48d30c8462c31 - 2.33% (71.7 MB)
[#007] sha256:476fb8f7e76a45b26751c85db492d3cd36982fedbfdf423e8c2ef3c4a88ee056 - 0.0% (1.18 KB)
[#008] sha256:aef2f494027fa658c603085fc0c0618e6ecc9827735963cee224d61762c68dcc - 0.0% (1.18 KB)
[#009] sha256:d0a4310d71b75b57920110349e0d06786ea43fe92f6f9c2ec47e85b26cbdbaaa - 0.0% (1.17 KB)
Apply image 10.0.16299.15
2019-02-08 07:16:29 UTCInstall update 10.0.16299.967
2019-02-14 10:18:28 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2019-02-14 10:18:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.4.19
2019-02-14 10:18:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.4.19-signed.msi
2019-02-14 10:18:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=b268ab57eebc13835d945e7e90338b4d2076ea5eb36169d6253af9e6e76061a4
2019-02-14 10:21:04 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.';
2019-02-14 10:21:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2019-02-14 10:21:08 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2019-02-14 10:21:10 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.