2023-02-16 00:41:34 UTC
2.04 GB
935bd3812047391e4295970538d8b33ddbe088676d5356283678368fb1b2377d
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.4-signed.msi
MONGO_VERSION6.0.4
[#000] sha256:1a65b089bc835b0c3700397b1935e97cf469b0891bb4de3942c8dfbe4b672d47 - 63.2% (1.29 GB)
[#001] sha256:d1d015a9e7adea898d81486dce8b513b0e9cbeca30904cac18c3ea98ab3be7a6 - 13.37% (280 MB)
[#002] sha256:028996d5eeb6d70e4f35b4acb3bafeee3f326bb40438911de597cad432ffdbc1 - 0.0% (1.32 KB)
[#003] sha256:e726bd5e1f613004391b7d41e49bea4011c3a223666caa08a0220f4e0fa68d7c - 0.0% (1.26 KB)
[#004] sha256:3be2181ce4ffdd1925df0debf928317ad7a4380a7bb74cdaa6de05de23030624 - 0.0% (1.25 KB)
[#005] sha256:e9f016f7eb5d8c86b2cc5b836b3294c4c423f25ce3693d94d3d76df59229291a - 0.0% (1.26 KB)
[#006] sha256:6384495140e8263892737ad41081cf5c4d6b439408aa7c414f100e4c03294058 - 23.42% (490 MB)
[#007] sha256:58fe62f77f2ddbdcaf5a6fead2ba3c0e821f1cc26e5b17cf383beda8fa5090c4 - 0.0% (1.28 KB)
[#008] sha256:a5708a4f8adb24613d6412881ae7f84f33aeca94782ea1731dc6b06190926e40 - 0.0% (1.26 KB)
[#009] sha256:00dd8612fcad1f052bb798cc26d8f04858b6c6a56e8f74badee3660324d7fcc6 - 0.0% (1.26 KB)
Apply image 10.0.20348.1487
2023-02-07 11:42:22 UTCInstall update 10.0.20348.1547
2023-02-16 00:38:08 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2023-02-16 00:38:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.4
2023-02-16 00:38:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.4-signed.msi
2023-02-16 00:38:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=935bd3812047391e4295970538d8b33ddbe088676d5356283678368fb1b2377d
2023-02-16 00:41:30 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.';
2023-02-16 00:41:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2023-02-16 00:41:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2023-02-16 00:41: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.