2023-06-14 19:44:32 UTC
1.56 GB
b41f2e65ebf109020327977eb7133e2ca3f3606f409935cfe817e1f4dab7f2dd
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.24-signed.msi
MONGO_VERSION4.2.24
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 82.86% (1.29 GB)
[#001] sha256:c45a9c91ac9cf27bb12f7baad712822dbb1e41b172e97946a8d48287c1570eb5 - 0.0% (1.4 KB)
[#002] sha256:9246e592103fede18261ce194b3598212bbb3241f778879622b02701d99c7e9f - 0.0% (1.28 KB)
[#003] sha256:2663677476f54f4b8d2fff72f737aec58c210510776629bf72d207b0e6ec5c8d - 0.0% (1.35 KB)
[#004] sha256:3ed7d5c4417bbddc933c5101114725234a7a553c2e226ad694eda1ac74412c16 - 0.0% (1.26 KB)
[#005] sha256:05d44b6cc356909fece85b6522d4df354cc6be96cebf70dbf01b7ac14c9c58a0 - 17.14% (274 MB)
[#006] sha256:adc7d7107cd90d3508a78577c72ad753173330e15efe7ba9be9bbdcf0f966c08 - 0.0% (1.41 KB)
[#007] sha256:6b8b78d393afd3d20df18137fa72b63f0a0be0723d2fd962849e6231e7c87935 - 0.0% (1.38 KB)
[#008] sha256:0792ffb3ce66f79368f0320341c19fbd1e443b16a705f4f6496ffaa200eeb33c - 0.0% (1.35 KB)
Apply image 10.0.20348.1787
2023-06-14 19:16:13 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2023-06-14 19:43:01 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.24
2023-06-14 19:43:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.24-signed.msi
2023-06-14 19:43:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=b41f2e65ebf109020327977eb7133e2ca3f3606f409935cfe817e1f4dab7f2dd
2023-06-14 19:44:29 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=Client,ImportExportTools,MiscellaneousTools,MonitoringTools,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 ' mongo --version'; mongo --version; 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-06-14 19:44:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2023-06-14 19:44:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2023-06-14 19:44:32 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.