2023-08-10 01:26:31 UTC
2.16 GB
06ee15df933f9f76757084c4b226eb06f79ad1471b293d9343484a6bc84e11eb
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.8-signed.msi
MONGO_VERSION6.0.8
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 59.98% (1.29 GB)
[#001] sha256:22a441455ace20af58f01367d769afc2b25c3db3e4a7aee67a634d14826f6f19 - 17.66% (390 MB)
[#002] sha256:85b1b41cab0d4b78c8daa50728be89bc3c25ded051cc1e654b316623692507f1 - 0.0% (1.37 KB)
[#003] sha256:4b0e0d8911068efc5db16251a7ff33e714540022dec887ba084fda40ce19cd91 - 0.0% (1.38 KB)
[#004] sha256:d4328cc4a81d3be0d7c25420297a9d2781cd25949377448ac721a03bda69e022 - 0.0% (1.39 KB)
[#005] sha256:0aa2a8ad0deec059bfd3cc86a918e1d0c6f2ede30539ec5e6bb26326a7c8ddef - 0.0% (1.39 KB)
[#006] sha256:a0ac2c3603eb451b58c0361717ea104127f03afa6a9d1374b76e5bec2f4c1f4e - 22.36% (494 MB)
[#007] sha256:cbf7a367221b5f8a5f927f60a38e6f4ebc5664483fb20d834e1c81b272e4d28e - 0.0% (1.37 KB)
[#008] sha256:be1fc0b470e70a1de627d2bf8a27db8e5f5ba2c3266738f2fdabed8e7bf4d305 - 0.0% (1.38 KB)
[#009] sha256:02e09b3b9e9c8e4cbf06c17772943c312f313aac713e3bbfb18018b48a094921 - 0.0% (1.4 KB)
Apply image 10.0.20348.1787
2023-08-03 10:01:10 UTCInstall update 10.0.20348.1906
2023-08-10 01:08:38 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2023-08-10 01:24:32 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.8
2023-08-10 01:24:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.8-signed.msi
2023-08-10 01:24:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=06ee15df933f9f76757084c4b226eb06f79ad1471b293d9343484a6bc84e11eb
2023-08-10 01:26:28 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.';
2023-08-10 01:26:29 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2023-08-10 01:26:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2023-08-10 01:26:31 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.