2025-11-11 19:26:22 UTC
2.41 GB
52c66f3e25db51c2fd5bc5f04e3aaa670a4754507e57db8e6473e5cf236c7144
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.2.2-rc0-signed.msi
MONGO_VERSION8.2.2-rc0
[#000] sha256:3cc21a1b754848d23f00aa65cb94ec34c9a5dc6028b3aada42039c824738d02f - 57.6% (1.39 GB)
[#001] sha256:3a26269efcb0f33c920b21f98d305592e7310bbe548291a16043e48a0c1feba5 - 10.87% (268 MB)
[#002] sha256:9a0aae524f9018510cd0d60508bd3fa0c997e98eb44a5293389c0a376fcbc00c - 0.0% (1.28 KB)
[#003] sha256:cfae1e05f6a0a31a0cd78aa126047f5b2b1da9aa5effa6edb306da4e2ab8c598 - 0.0% (1.26 KB)
[#004] sha256:9a9df04348ee78cdcb51b1e999991d961b9f58bd7e889658e9707b83b7de6c59 - 0.0% (1.26 KB)
[#005] sha256:e99a629abefcae67e755978f0ec080bab330b97265cdee271512423165be5308 - 0.0% (1.26 KB)
[#006] sha256:f9c6013630c157218bd0fea7252056fd9a66688416e1493e80a2c71b018a900f - 31.54% (778 MB)
[#007] sha256:73c91225cc594813163eed6de0d5bfd9da54058da3d193276435524adce255e0 - 0.0% (1.29 KB)
[#008] sha256:5c21440578d3934f913351878a7c2642307ead55494c29da6f5c7d176d083605 - 0.0% (1.26 KB)
[#009] sha256:ffee1ad1388acefad15a60f8507aa40446317e694f19feeb013f90f66f8fbf49 - 0.0% (1.3 KB)
Apply image 10.0.20348.4294
2025-11-05 05:39:13 UTCInstall update 10.0.20348.4405
2025-11-11 19:19:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-11-11 19:24:16 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=8.2.2-rc0
2025-11-11 19:24:16 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.2.2-rc0-signed.msi
2025-11-11 19:24:17 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=52c66f3e25db51c2fd5bc5f04e3aaa670a4754507e57db8e6473e5cf236c7144
2025-11-11 19:26:18 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-11-11 19:26:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-11-11 19:26:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-11-11 19:26:22 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.