2024-10-09 23:09:53 UTC
1.97 GB
3188d1a49244ce4a6bc4d853a3d79c178a9d0ae5e6613e4f42cf4156e6b25178
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.29-signed.msi
MONGO_VERSION5.0.29
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 69.23% (1.36 GB)
[#001] sha256:3445b497121718058765c341117a0c1522c51cd65bec8c517981a745ff91f0bf - 15.96% (322 MB)
[#002] sha256:4fe9fc17f5b4c0fb65223612ebfa62d59ecf01505d339da94b0faae63016194d - 0.0% (1.25 KB)
[#003] sha256:2a46d55ca95960b0e155b22048e17b71885956061269c6eb7cd50eadc2a9aa33 - 0.0% (1.26 KB)
[#004] sha256:394de4aece79da05623e09fc999e3e5433f8835458d17d181ea65d41685d5247 - 0.0% (1.25 KB)
[#005] sha256:18f05b80d8c637a82e91bfd203b1a6953e84b003852d0f846356af2abee0711f - 0.0% (1.25 KB)
[#006] sha256:21eb272bb4161d167d04d28655406a6b2af4c05cfa88cdff99585cd5356787e0 - 14.8% (298 MB)
[#007] sha256:3b265dfbb83adb70672d1dd603405d80aa69208f500fd6394abcd78db6bb7245 - 0.0% (1.25 KB)
[#008] sha256:85e075f22259380827d334eab9516eba02b071697d5203617345bc6b7d3b4cfd - 0.0% (1.25 KB)
[#009] sha256:ce4831bf069888cbdc3f0fa143fddddd9b8888c40ad324404ae13d6eea867f68 - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2024-10-06 04:56:48 UTCInstall update 10.0.20348.2762
2024-10-09 23:08:51 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-10-09 23:08:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.29
2024-10-09 23:08:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.29-signed.msi
2024-10-09 23:08:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=3188d1a49244ce4a6bc4d853a3d79c178a9d0ae5e6613e4f42cf4156e6b25178
2024-10-09 23:09:49 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.';
2024-10-09 23:09:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-10-09 23:09:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-10-09 23:09:53 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.