2024-09-11 00:03:32 UTC
1.65 GB
63395ee8f3e56a26a7dab0fbf7f624eb0c341767b2e6805a6b5f986d59f1bed0
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.29-rc0-signed.msi
MONGO_VERSION5.0.29-rc0
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 82.38% (1.36 GB)
[#001] sha256:8f7a68bf111b0621d3eae6449448cdeaa52c0fa9ff176db6d4266e92ce043b27 - 0.0% (1.26 KB)
[#002] sha256:f3511683c5bdc91c99f46fd1686ea6dcc6039eb900c1d575b24e5dd5ed84c283 - 0.0% (1.26 KB)
[#003] sha256:7c3c3ed1ac22c2587cdcf04461b4bdbece87fcd0eb9264d1fa1b3d8e7b4d0604 - 0.0% (1.23 KB)
[#004] sha256:d3977023f286fea35cc8f478c5936d41b3b2ecdb8289328a3f2feff046b84651 - 0.0% (1.26 KB)
[#005] sha256:02428d89477a9f461e428c2954aa70c4228fa332998dea28eb8ba0d066befb2d - 17.62% (298 MB)
[#006] sha256:6891a4f7f6f8a2bc8592db5a9396c07aa59b2f5cac44fb8cacb579f275605d1c - 0.0% (1.25 KB)
[#007] sha256:b62ca823e4ef9d1efb4a58cf390f1b8b8fff99849f713a3755420e42b0e9282e - 0.0% (1.26 KB)
[#008] sha256:c27d8592a87cfd8d538c737e5e54774a6cf70efbf082d511629b467e39db5c23 - 0.0% (1.26 KB)
Apply image 10.0.20348.2700
2024-09-11 00:02:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2024-09-11 00:02:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.29-rc0
2024-09-11 00:02:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.29-rc0-signed.msi
2024-09-11 00:02:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=63395ee8f3e56a26a7dab0fbf7f624eb0c341767b2e6805a6b5f986d59f1bed0
2024-09-11 00:03: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=Client,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 ' 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.';
2024-09-11 00:03:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2024-09-11 00:03:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2024-09-11 00:03:32 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.