2021-10-14 01:50:34 UTC
2.72 GB
aa2eef8fbf94a91428da1ec9cd61acd7e44612e2ae35ae616aefe0a8f93cf282
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.9-signed.msi
MONGO_VERSION4.4.9
[#000] sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f - 58.87% (1.6 GB)
[#001] sha256:c0698cf91ebd6bcfb319be6a50421b356d6a3dbbd213d9b2b9dca0f837d7a999 - 33.17% (923 MB)
[#002] sha256:55c74bf8af074a49872e1e0411ac5572625083d17cb1100c5cade611deeb92ff - 0.0% (1.26 KB)
[#003] sha256:0886983362f57b43533f68c5ccc33145b0d805a11e0da1dd6c8fa06ec931ffb5 - 0.0% (1.36 KB)
[#004] sha256:34042ee2cce16bd8b899b9619f49908494379bedb35101bbdcef679633ec9686 - 0.0% (1.4 KB)
[#005] sha256:5b71d01097e8a502dfe0b3d5bb96944c1bf8fb956d9b4cf48a38d3c079a56468 - 0.0% (1.4 KB)
[#006] sha256:3c4212f394b7214eeb1ac66d1584465682794d7b785c1aac0a7fb3554a613a10 - 7.96% (222 MB)
[#007] sha256:367e96e4046a90392a59c306291b58dcaa14dcb9b63665c700d82b50fb6500f1 - 0.0% (1.36 KB)
[#008] sha256:6a70e0cf8c94ad0c92d6541deb69bfa43929d211379dbec562fece3060d626c6 - 0.0% (1.36 KB)
[#009] sha256:a28e689dfd5a6f572a25585951506e031416cbd06965af2ed6bf35daebf520bb - 0.0% (1.36 KB)
Apply image 1809-RTM-amd64
2021-10-07 08:25:51 UTCInstall update 1809-amd64
2021-10-13 00:34:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2021-10-14 01:48:01 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.4.9
2021-10-14 01:48:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.9-signed.msi
2021-10-14 01:48:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=aa2eef8fbf94a91428da1ec9cd61acd7e44612e2ae35ae616aefe0a8f93cf282
2021-10-14 01:50:30 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,MiscellaneousTools,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-10-14 01:50:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2021-10-14 01:50:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2021-10-14 01:50:34 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.