2022-11-09 18:55:16 UTC
2.52 GB
2e2afacac93df1c040d92eeb84917fe4fd50fd795094a807b0dc37bf922efd72
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.28-signed.msi
MONGO_VERSION4.0.28
[#000] sha256:a4aee932fccc1ec8135f290aca03a7c93dcc2536fc84723813ef9b95f6fd13ea - 54.4% (1.37 GB)
[#001] sha256:e276673195ed11807395b0da51ac20ef31c925ce955c29ad1bab54f14617c25b - 37.19% (961 MB)
[#002] sha256:edcc0cd10e58716558145d847bcea390e3840d172df19b8d0f08a57dd985262d - 0.0% (1.35 KB)
[#003] sha256:8c85f368223039d4311f050b92f61df4447520c970711e78abe989d99192517a - 0.0% (1.36 KB)
[#004] sha256:5c20b0627dc6ae6eb2fdf7e8d6b5a0388aaad1f9716615d438fede231c7bd70a - 0.0% (1.39 KB)
[#005] sha256:608a786b81520b00d8f48d3164c0a37be236e522d76d2b4be44a5f0123977d76 - 0.0% (1.38 KB)
[#006] sha256:3ec5e5b865b7cd4359beaee94114714f30463309bb44859133dcc1ad8795050e - 8.41% (217 MB)
[#007] sha256:8f2a9a316a14a0835d9ad8bec3dbce41bdb8155f0ed663822c18263eeeeb4d79 - 0.0% (1.37 KB)
[#008] sha256:dce76f0e12f1e549687820f07339e61be87a1fab6c4f660a12cad9973bbcc5c9 - 0.0% (1.41 KB)
[#009] sha256:07fd8b29b602a8900e1e9a579f5daf6a1142e78f0babc2ffd42446c5f76918ef - 0.0% (1.39 KB)
Apply image 10.0.20348.643
2022-11-05 07:49:25 UTCInstall update 10.0.20348.1249
2022-11-09 14:41:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-11-09 18:53:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.28
2022-11-09 18:53:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.28-signed.msi
2022-11-09 18:53:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=2e2afacac93df1c040d92eeb84917fe4fd50fd795094a807b0dc37bf922efd72
2022-11-09 18:55:13 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.';
2022-11-09 18:55:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-11-09 18:55:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-11-09 18:55:16 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.