2023-06-24 02:57:24 UTC
1.77 GB
95a021db597790008f2e7070fab4a7c3e0d30262f2305c615b95cb7b8afb4eed
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.22-signed.msi
MONGO_VERSION4.4.22
[#000] sha256:b1471cc22404d036d95728a9c37c1e3f025a1f0a331072c8613e38cf8f7ff1ed - 87.03% (1.54 GB)
[#001] sha256:ed9634b679e6c602a6aaf0bae51625e7ca041489c77150db557640304f51bb37 - 0.0% (1.37 KB)
[#002] sha256:37528efaa97cd491d0c598ce3489dd3c3ae33fcbc2b22736d07d3dcd4cbd86e6 - 0.0% (1.39 KB)
[#003] sha256:827b73a780fb73a363e3254b51d025b9a0db507d4248f33cedd648ea46ec73e7 - 0.0% (1.37 KB)
[#004] sha256:712b1c63094b072181958752d47f8b2d1e2d7adddbd96fe9ee63505c70423ac7 - 0.0% (1.37 KB)
[#005] sha256:e7a5f6482f1ee08e518a8981f0693b0a4870ad3607feb7156ef90d79c8fa63ae - 12.97% (235 MB)
[#006] sha256:50fb7b65b83dc77ca69f2f937e849f4840224c92b08e52f7cd2fdfde0676ebfc - 0.0% (1.38 KB)
[#007] sha256:9aa49a083152346c742e9048e225d983913f898170611b51e2f48487f199a6c2 - 0.0% (1.38 KB)
[#008] sha256:df60da52769820c2a05ee909c664de76b3b8a8604961f1410da59fb198d80e9d - 0.0% (1.38 KB)
Apply image 10.0.17763.4499
2023-06-24 02:28:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2023-06-24 02:55:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.4.22
2023-06-24 02:55:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.22-signed.msi
2023-06-24 02:55:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=95a021db597790008f2e7070fab4a7c3e0d30262f2305c615b95cb7b8afb4eed
2023-06-24 02:57:21 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,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 ' 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-24 02:57:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2023-06-24 02:57:23 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2023-06-24 02:57:24 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.