2025-06-30 17:28:46 UTC
2.85 GB
887b2869804fec5f7412f4d848ab6bc587819fb2ee1ab49e2fac1538ccc53a91
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.11-signed.msi
MONGO_VERSION8.0.11
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 47.85% (1.36 GB)
[#001] sha256:db5652627be066fd088860f3ebfcc61d4cb76922ffa16c5496b4158c7e4e7151 - 26.77% (780 MB)
[#002] sha256:25f719d54f40344d1f06ae72ea3d918295e9070130c07b6b67a23ecd457abcf2 - 0.0% (1.26 KB)
[#003] sha256:3bf5ac817fd80b4bcb5442cd3e27188a9709b7df446e510df175eaef0171333f - 0.0% (1.25 KB)
[#004] sha256:8177af34a2a0a2735dc40be6a7189d5854c2e8be271550cabfbd3af50c2f9624 - 0.0% (1.26 KB)
[#005] sha256:fcda42e73cbf2d3676f05a32d0b7e3fbeef49935203b6d3a8a2325d03e2bd4a3 - 0.0% (1.25 KB)
[#006] sha256:13c18b7acfe7c9364937692224bdbf0bfe4f2e1611fb572e3c204b1325cb80e9 - 25.38% (740 MB)
[#007] sha256:93e69835ec0dff50ac4476db553949e116c13ec27a1499772ce18034ec2dd475 - 0.0% (1.25 KB)
[#008] sha256:54c22e6b0a404b0082f6274e06fa0f4a8975e1a54bbbf32e0c07073769d3ce4e - 0.0% (1.25 KB)
[#009] sha256:d6526556be0e00104bb9641575b698a32747333be17472aba87d960e448201d0 - 0.0% (1.26 KB)
Apply image 10.0.20348.2700
2025-06-05 01:01:39 UTCInstall update 10.0.20348.3807
2025-06-30 17:27:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-06-30 17:27:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=8.0.11
2025-06-30 17:27:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.11-signed.msi
2025-06-30 17:27:24 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=887b2869804fec5f7412f4d848ab6bc587819fb2ee1ab49e2fac1538ccc53a91
2025-06-30 17:28:43 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.';
2025-06-30 17:28:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-06-30 17:28:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-06-30 17:28:46 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.