2022-11-09 18:33:27 UTC
2.6 GB
f9b1e144822887bb361ad218967f4cbfdedb6d59e70b12b564b4b63a4d5cbf6f
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.13-signed.msi
MONGO_VERSION5.0.13
[#000] sha256:a4aee932fccc1ec8135f290aca03a7c93dcc2536fc84723813ef9b95f6fd13ea - 52.77% (1.37 GB)
[#001] sha256:e276673195ed11807395b0da51ac20ef31c925ce955c29ad1bab54f14617c25b - 36.08% (961 MB)
[#002] sha256:edcc0cd10e58716558145d847bcea390e3840d172df19b8d0f08a57dd985262d - 0.0% (1.35 KB)
[#003] sha256:85f1ed794ca633dd3043489f04b65634163d54fe127015eded0dc6ffe0e1490c - 0.0% (1.39 KB)
[#004] sha256:9e00d6958353eb71d950d38e1fe80a6a4236ee641e131fb8e615b38d69121cb1 - 0.0% (1.4 KB)
[#005] sha256:c28910c0531e0c624b16943a64f431680c4fb384fcb7325851d7a5782988d937 - 0.0% (1.41 KB)
[#006] sha256:dc349fd8a2b21ee0480cf833a93236890c8ef8387b5bd9756f33c98014a6dae7 - 11.14% (297 MB)
[#007] sha256:2206b677867745ce6697867b5d067a6ad96d22879e1b778f08e451d0b4917dd2 - 0.0% (1.27 KB)
[#008] sha256:39e150b31fe9fe1abe3df85f31a3cd7d4952911ef00e207273c0a423d4c8f171 - 0.0% (1.25 KB)
[#009] sha256:39425af5df292019f9e337102c5867b179751d20e4d60b30b861f6bbf5125b62 - 0.0% (1.26 KB)
Apply image 10.0.20348.643
2022-11-05 07:49:25 UTCInstall update 10.0.20348.1249
2022-11-09 14:41:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-11-09 18:31:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.13
2022-11-09 18:31:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.13-signed.msi
2022-11-09 18:31:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=f9b1e144822887bb361ad218967f4cbfdedb6d59e70b12b564b4b63a4d5cbf6f
2022-11-09 18:33:24 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\mongod.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.';
2022-11-09 18:33:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-11-09 18:33:26 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-11-09 18:33:27 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.