2024-09-11 00:02:43 UTC
1.85 GB
90c6014610d9351763c59985460c915bb87227ecea619cb2d93e962787b87cc1
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.17-signed.msi
MONGO_VERSION6.0.17
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 73.59% (1.36 GB)
[#001] sha256:4d3284b0821fbd1944a34b4a72a3b0fe634b0f48f3b90730898dbdecd7076bb4 - 0.0% (1.26 KB)
[#002] sha256:96adbe0bf947d4006652f432ef051e8e5e2fb0078b77fa16c949ef9a0db7a4e7 - 0.0% (1.26 KB)
[#003] sha256:0f1af5e6c4c5317a253c2014ff65cf051a236395f4b6074b44ce63072998e80f - 0.0% (1.33 KB)
[#004] sha256:7588d08872a0aaaca3053bce9a53cac27788891483c283194e062da17148db25 - 0.0% (1.27 KB)
[#005] sha256:15e32f8901f06fada4eacd93d797f3eafc4aea48fb91b81918da54626ccd3294 - 26.41% (500 MB)
[#006] sha256:66773cf70419a80e74ce32d857f4b045bb4bd9301b2dd3fc29930d8379e7a6fe - 0.0% (1.3 KB)
[#007] sha256:5785c43caa11c70fa77fed6285d082f307887d2fdeea36b38f6f737517845b7f - 0.0% (1.3 KB)
[#008] sha256:1f88c1ad68bb8d3e04aa49a25f639f354778dcc814649ffaec9d282fab5c4562 - 0.0% (1.36 KB)
Apply image 10.0.20348.2700
2024-09-11 00:01:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-09-11 00:01:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.17
2024-09-11 00:01:40 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.17-signed.msi
2024-09-11 00:01:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=90c6014610d9351763c59985460c915bb87227ecea619cb2d93e962787b87cc1
2024-09-11 00:02:39 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.';
2024-09-11 00:02:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-09-11 00:02:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-09-11 00:02:43 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.