2024-03-27 21:52:13 UTC
2.4 GB
c261aec37cda5c8972232b00195ff37fb97b98a166fa152f6db3fe86c912fa49
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.8-rc0-signed.msi
MONGO_VERSION7.0.8-rc0
[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 53.92% (1.29 GB)
[#001] sha256:a61557bf66429be9509f579104808d2853f8f7aefbd49ef26f5f2a90266c46f5 - 22.09% (543 MB)
[#002] sha256:2181ac315252d1cd57aef02e7797ae351bd02e93180fa0e959067af87ef9665d - 0.0% (1.23 KB)
[#003] sha256:47326887b82f504154b84b2131a5541d872034fa2c151ab2c9cbd1a09399eecd - 0.0% (1.26 KB)
[#004] sha256:cdb7346a78a25e5fd12f63445e3e1a6705242996282a5bf0e96c1686b9638e77 - 0.0% (1.26 KB)
[#005] sha256:ccbd298e10900eb082bcd9b9eecc19bf901bc0c259501d65e0761ed258b85ef1 - 0.0% (1.26 KB)
[#006] sha256:a1a9e2b1fa434a9373cd63cd5349495537fc5b7b5156283c94e2d6df13d751a9 - 23.98% (589 MB)
[#007] sha256:01aa7dc3e7e76a96a84fbd2c74c7ae9f033274da3987638a326425fe71a62c9b - 0.0% (1.26 KB)
[#008] sha256:fd09949bbca1bf80609a1e2f7263b6c9f485bb7b634fcc3c37ad8b8fc2e7177a - 0.0% (1.26 KB)
[#009] sha256:a100a6a407bbf3934e3d5213c411e410370efddd0264748a57dc8b1547868c7a - 0.0% (1.27 KB)
Apply image 10.0.20348.1787
2024-03-05 19:55:40 UTCInstall update 10.0.20348.2340
2024-03-27 21:49:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-03-27 21:49:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=7.0.8-rc0
2024-03-27 21:49:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.8-rc0-signed.msi
2024-03-27 21:49:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=c261aec37cda5c8972232b00195ff37fb97b98a166fa152f6db3fe86c912fa49
2024-03-27 21:52:10 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.';
2024-03-27 21:52:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-03-27 21:52:12 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-03-27 21:52:13 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.