2022-08-10 18:21:07 UTC
2.78 GB
5feeaf02c6a1a9125565de2e3e44a6c11d920427db31d2ef3b516e2832dcff9b
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.10-signed.msi
MONGO_VERSION5.0.10
[#000] sha256:b111c3320c949bea81612bf4554f1b6592c2f504920b5bf57ba340a1d4d52c93 - 62.87% (1.75 GB)
[#001] sha256:294d77ac553d7210b662d07674ef9e39a6c2e88dc15b9d2788d51e509bc8b54e - 26.81% (763 MB)
[#002] sha256:da71148bcd96afa7027d6172acee93aad6002bfbe87cadf468260667c09b3a89 - 0.0% (1.4 KB)
[#003] sha256:6d000d409b0c20e6ed52ccc332cfba1c8ae7a69df54fc78c122816419e86e1ae - 0.0% (1.38 KB)
[#004] sha256:3ea827f4a68208178e83cd57647defeeb7f040c0a69d14dc5708f755560e1c33 - 0.0% (1.38 KB)
[#005] sha256:6936957f917fde2ed8b116a4d7cca6869057da7ba74cd2716bfe87e37d8e61be - 0.0% (1.38 KB)
[#006] sha256:ca21056c7818e683a0ade00d3a00e1ca5e05df68ad7219e94999b89847aa1150 - 10.32% (294 MB)
[#007] sha256:6b92a6a429dc44c98385948197a7b7be913c5d27bf78fb59eb44e0de78fce845 - 0.0% (1.39 KB)
[#008] sha256:4b1de289bef0e3bce3d04806858eda60ea6916eaa4e9bf5675d8727fe4da0c6e - 0.0% (1.39 KB)
[#009] sha256:c03b13d3ccb392e6df64fb0ad6b61fa92294d4a1b14989538aa0ba45f0151d3d - 0.0% (1.41 KB)
Apply image 10.0.17763.2803
2022-08-06 18:30:32 UTCInstall update 10.0.17763.3287
2022-08-10 13:44:07 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-08-10 18:18:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.10
2022-08-10 18:18:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.10-signed.msi
2022-08-10 18:18:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=5feeaf02c6a1a9125565de2e3e44a6c11d920427db31d2ef3b516e2832dcff9b
2022-08-10 18:21:03 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\mongo.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-08-10 18:21:05 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-08-10 18:21:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-08-10 18:21:07 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.