2024-11-25 20:26:00 UTC
2.81 GB
d9e58da185196ee82523cb63450b975fa01bc2f5234a340e4cc95cbb4f9187b4
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.4-rc0-signed.msi
MONGO_VERSION8.0.4-rc0
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 48.38% (1.36 GB)
[#001] sha256:5987a3191d90ca1e07fd03dae1963abcaa49ceabc649ec3bc43f2c96b55d0464 - 26.15% (754 MB)
[#002] sha256:2417e936f0120ba0a3324418490181ab3d07caffb44d7b12e8cbf077abe42f16 - 0.0% (1.24 KB)
[#003] sha256:cfb5004ba1c63a47ca74ce5158259d0d0857f9d9823761528db4ce3555ea4dd5 - 0.0% (1.25 KB)
[#004] sha256:98fe81c15b5cd199ff6bc8956e3b7952ea9189669b712072738f001a46c916db - 0.0% (1.25 KB)
[#005] sha256:0c00e0a57f0825d3044685cde4be99def696b70db919f4f66a9931fd6f1e8d13 - 0.0% (1.25 KB)
[#006] sha256:80fa182d9984a93f647b32078a72fa85afb6a17268d0e775fad96cfb8cb037dd - 25.47% (734 MB)
[#007] sha256:78f136a69f72bdcd784542fd3c587f565c915cd818dfab512b348f0d0cfbc1f1 - 0.0% (1.29 KB)
[#008] sha256:9a569c2231a50db032502b8328fcd587817095a937ead5620615d024526b78ba - 0.0% (1.25 KB)
[#009] sha256:513ecf4603f9f9e579b4edba21f12b74d3d8c074a05174242930a7d826fb08dc - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2024-11-02 23:52:43 UTCInstall update 10.0.20348.2849
2024-11-25 20:23:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-11-25 20:23:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=8.0.4-rc0
2024-11-25 20:23:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.4-rc0-signed.msi
2024-11-25 20:23:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=d9e58da185196ee82523cb63450b975fa01bc2f5234a340e4cc95cbb4f9187b4
2024-11-25 20:25:57 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=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 ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2024-11-25 20:25:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-11-25 20:25:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-11-25 20:26:00 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.