2025-03-14 23:31:59 UTC
2.69 GB
de7422fd80c73165e3d3c2428ea18d23430ab7595eadd9668999cb0b97bb05d7
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.18-rc0-signed.msi
MONGO_VERSION7.0.18-rc0
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 50.71% (1.36 GB)
[#001] sha256:75861b2b3af9a692daa04d9c15a1c79d8a009e23ed5140003350c9b926460f09 - 28.02% (770 MB)
[#002] sha256:c71254eb9a06e4c5596fb39333db0866542ecbdc1dedef9364abda6d229c6a8d - 0.0% (1.3 KB)
[#003] sha256:970e9791b4c5ee646b22675c4b2ca1a004569bf529e84dcea474dcdd85923fb7 - 0.0% (1.25 KB)
[#004] sha256:979821d7021f4fe7181f2bbbfa9563f2105b9385122d732a6d8a6406cf79f465 - 0.0% (1.28 KB)
[#005] sha256:27cf124066624ecd9e4a56bbd5b293086dbb0633022cdfe74c796f46b3c28d8f - 0.0% (1.25 KB)
[#006] sha256:9f96b7f7ebf084ecbbf1ed1dd5f0115c00a0adb4734d654ec2559ff32e8d8d1e - 21.27% (585 MB)
[#007] sha256:0b10ebdf2ef9a4b735f7a49adae28bbb1d1a65e2c9c7d725a8698186e91c692d - 0.0% (1.26 KB)
[#008] sha256:a0ebbb3ad5fcb2f822e3784b8c8151e3f5d09b20a6c13099b202ac2f6383b820 - 0.0% (1.25 KB)
[#009] sha256:da261b667ea90062e6c35c4dfe2ce2982fbd9916c6bbc584c4df16328c9be426 - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2025-03-06 10:49:01 UTCInstall update 10.0.20348.3328
2025-03-14 23:30:51 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-03-14 23:30:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.18-rc0
2025-03-14 23:30:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.18-rc0-signed.msi
2025-03-14 23:30:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=de7422fd80c73165e3d3c2428ea18d23430ab7595eadd9668999cb0b97bb05d7
2025-03-14 23:31:52 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-03-14 23:31:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-03-14 23:31:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-03-14 23:31:59 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.