2021-07-14 01:55:41 UTC
2.71 GB
6d4525afbf17d6d9f54323f8d95c73019e3cb0fa57163683a164f3c403aa451f
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.25-signed.msi
MONGO_VERSION4.0.25
[#000] sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f - 59.0% (1.6 GB)
[#001] sha256:f143c6fed32d477c35b660b2e108ea62e3593c03e44bd9ced208ce52b26b0841 - 33.2% (922 MB)
[#002] sha256:adcec6ff907307155c0652222cc9b95a0cc964d4c371e02767e72a5c90472192 - 0.0% (1.39 KB)
[#003] sha256:6e50cbb7036c8d4bf194614f3a62c5fcac42cdbaddbe09602c1047559a5acc1e - 0.0% (1.39 KB)
[#004] sha256:77e546f6860283c5c4a964bd3806fc9dfa5220a9595125912ffff91e95c5fd50 - 0.0% (1.4 KB)
[#005] sha256:d7272136dd6e1a6651464d925cf48f428e3081332dd0684640c1305aac6b5a79 - 0.0% (1.39 KB)
[#006] sha256:2d06fbec0586802dcf98ae0f8812d5a3a0ff6c4fd0624d3a5399041975852657 - 7.8% (217 MB)
[#007] sha256:959ba02de39777b27554951f4fbf2c7d3a9de60b8e28dbbe7c79ab3699b3c2f7 - 0.0% (1.39 KB)
[#008] sha256:e31b24df1136ddfb1fad0490e6365ad3343ffb7cf42fc92c97b77b0c26c87d51 - 0.0% (1.41 KB)
[#009] sha256:7cad40b530d0a917771c311f21ebcedd53e6681b95893fb9c93ea1959476526f - 0.0% (1.4 KB)
Apply image 1809-RTM-amd64
2021-07-06 20:34:18 UTCInstall update 1809-amd64
2021-07-14 01:07:27 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2021-07-14 01:52:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.25
2021-07-14 01:52:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.25-signed.msi
2021-07-14 01:52:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=6d4525afbf17d6d9f54323f8d95c73019e3cb0fa57163683a164f3c403aa451f
2021-07-14 01:55:31 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'); if ($env:MONGO_DOWNLOAD_SHA256) { 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', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=Client,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $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:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2021-07-14 01:55:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2021-07-14 01:55:38 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2021-07-14 01:55:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
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.