2022-11-09 18:28:04 UTC
3.07 GB
964a7e33927a8c01a6177daf0bf49f3ec17560b1b78f8be60ec641a03c55cb18
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.2-signed.msi
MONGO_VERSION6.0.2
[#000] sha256:a48a3e4ae2de839d8e99bde16eb91d113fb2cf889bba472d0c4274851b5fb402 - 58.47% (1.79 GB)
[#001] sha256:c26cc6e4f9eb1ae415a5ead6f884cac597bbd57efa6cd042c878d5b54c9d2091 - 25.96% (815 MB)
[#002] sha256:99941fb33972e616b231a8aadd93463fdfd5de6aece4aa6c470d2feec31839be - 0.0% (1.3 KB)
[#003] sha256:9c0fec38ff3c242baf141e10c6a5b81f008c9915acd4dd9cc327eaf296892c96 - 0.0% (1.41 KB)
[#004] sha256:537c68971b182ddb518477c6993accb024778f71f16894ed90390301eb7a7dbb - 0.0% (1.37 KB)
[#005] sha256:4f07b977aece83110fb1358d8b0863f8ae2635c61e505e11cbc078e175a12c50 - 0.0% (1.39 KB)
[#006] sha256:17aef8040e1f6a5348317cc5430061159238fc4f6004b23714a8a5b6a5b50e91 - 15.57% (489 MB)
[#007] sha256:c7866b495e26e50fe549700b9f846f7f279dbd5e27aaa6901017e8a414412681 - 0.0% (1.38 KB)
[#008] sha256:d6e8a72583964e2d9524c834c0288f7032834759c8d3f683776c31e66ab24423 - 0.0% (1.36 KB)
[#009] sha256:b494701b847f8225f597c05baec6c20bcd3464f492576d85be3260aff75ec192 - 0.0% (1.39 KB)
Apply image 10.0.17763.2803
2022-11-05 18:29:26 UTCInstall update 10.0.17763.3650
2022-11-09 14:50:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-11-09 18:24:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.2
2022-11-09 18:24:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.2-signed.msi
2022-11-09 18:24:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=964a7e33927a8c01a6177daf0bf49f3ec17560b1b78f8be60ec641a03c55cb18
2022-11-09 18:28:01 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=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 ' 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:28:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-11-09 18:28:03 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-11-09 18:28:04 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.