2022-09-14 18:48:11 UTC
2.78 GB
7ae6c00390b9917238403aa017cd02479d5e5ad0c75f871e51f58f5bd7c2f722
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.22-signed.msi
MONGO_VERSION4.2.22
[#000] sha256:b111c3320c949bea81612bf4554f1b6592c2f504920b5bf57ba340a1d4d52c93 - 62.79% (1.75 GB)
[#001] sha256:cee64bf279e2ca8e924884a10ecb98bfa79c7f0cc8d25e73039b9aeb940815b6 - 27.64% (788 MB)
[#002] sha256:3c428406510f0a47ed60f28060a7d625d42344a95fdcb7c4f5746fb8857c3328 - 0.0% (1.38 KB)
[#003] sha256:75e8b229f2619acb1f744a0d37f0193f8bd6f9458d841974fbb5498c41de35fc - 0.0% (1.38 KB)
[#004] sha256:f72d2e42abf840ec3ced2ccc866144f10fb8c28e71a9b589fba735e592283d83 - 0.0% (1.36 KB)
[#005] sha256:9b357d3772c444f7c24fd3c6706d29319b4f13f444e458e285ab9a9bbb9c5ef5 - 0.0% (1.39 KB)
[#006] sha256:f1380929f30e7e6ec74955b45bb03e993c7c5d5a7215ea0678dbc9588273229a - 9.57% (273 MB)
[#007] sha256:a9003cb4fbaa36f33ed15e9c15bfc3f6a44d24dfcede4ab43e129885803dd9dc - 0.0% (1.4 KB)
[#008] sha256:702b2e64a7c438dc928b0f869a0e901285307183b86964a6b4c081f101f8abef - 0.0% (1.38 KB)
[#009] sha256:101e2167491546b1192517a2cc5c3ab4edc2c0ef9b3f7e634f3f897bb1f23754 - 0.0% (1.39 KB)
Apply image 10.0.17763.2803
2022-09-09 22:43:02 UTCInstall update 10.0.17763.3406
2022-09-14 13:39:18 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-09-14 18:45:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.22
2022-09-14 18:45:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.22-signed.msi
2022-09-14 18:45:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=7ae6c00390b9917238403aa017cd02479d5e5ad0c75f871e51f58f5bd7c2f722
2022-09-14 18:48:08 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-09-14 18:48:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-09-14 18:48:10 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-09-14 18:48:11 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.