2025-01-14 23:38:34 UTC
2.4 GB
96ebfde8a9540459d8a46e8ba6afabd9dc9ee61e700d8c956a6d98b78511f954
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.31-rc0-signed.msi
MONGO_VERSION5.0.31-rc0
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 56.73% (1.36 GB)
[#001] sha256:440cf16a6c1eb5c6c232aa5e54099878e9ddb01fb83b65139ec4e2618d1e00de - 31.05% (763 MB)
[#002] sha256:6e36ac8926072ca0e203ff0ceb6461713fc011cd03c68cadca2a014a6f732ef9 - 0.0% (1.25 KB)
[#003] sha256:c2260df28511a81479fc27662550773a411e33da86a38c8401675813af458754 - 0.0% (1.26 KB)
[#004] sha256:df92b2877164385307aa631d881b32214155552165523b65e84ff07e0a0e27e7 - 0.0% (1.25 KB)
[#005] sha256:1fae991ee3837d363a1f38b0ddba7cb22141556bf2fb35e99bc93cc6897936f7 - 0.0% (1.28 KB)
[#006] sha256:7c0dd614a6ee4db255740dff4e4c58cd35900e1b223e15a32fe5f0be5e2da749 - 12.22% (300 MB)
[#007] sha256:2938450910258b038855e3d1c246316e655c7ce60def0f0d604b2b9d757603ad - 0.0% (1.25 KB)
[#008] sha256:3815b60cc6dc39e66e8f1b892f33b9043a99fdf1ae63d4f0d9e7ff54b8055b82 - 0.0% (1.25 KB)
[#009] sha256:49d69b49927aa6018761307acc14841089a471c19a91eb056884096426820a61 - 0.0% (1.26 KB)
Apply image 10.0.20348.2700
2025-01-12 10:10:43 UTCInstall update 10.0.20348.3091
2025-01-14 23:37:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-01-14 23:37:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.31-rc0
2025-01-14 23:37:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.31-rc0-signed.msi
2025-01-14 23:37:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=96ebfde8a9540459d8a46e8ba6afabd9dc9ee61e700d8c956a6d98b78511f954
2025-01-14 23:38:27 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.';
2025-01-14 23:38:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-01-14 23:38:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-01-14 23:38: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.