2025-04-18 03:30:56 UTC
2.61 GB
8d15563eae81fe7ec7530ab84cb04a9f7af16391dffbaa27d02ae9937b7e9c3c
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.22-signed.msi
MONGO_VERSION6.0.22
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 52.21% (1.36 GB)
[#001] sha256:b0b6ee194dfee460cc53e0f761b7ff976c08380d6cd1e70cc50ff92cfa99d176 - 28.97% (774 MB)
[#002] sha256:d1336025661523a5b33a97af2ee5c66fa5bb4f5a12af4429b4981781b52a7871 - 0.0% (1.26 KB)
[#003] sha256:accf50c00327d534abe4a0b8eb30c898744f014ddbfb61bb865193283ffcc26b - 0.0% (1.26 KB)
[#004] sha256:4f03fbff43091771a5f56731e19b3390d9fe63a3d4cb56ebc6a65d1d94a32dd6 - 0.0% (1.26 KB)
[#005] sha256:f5f26741a0aced520208b506464e8222d35060c267607f07c8c66fc3823ddfea - 0.0% (1.26 KB)
[#006] sha256:f1cb54ec349e3d7ef89c34c714d1b914fcaff7ffc1dae3b9a96328db08379cc2 - 18.81% (503 MB)
[#007] sha256:944ce34aec714564eba0676640e5a5fcacb737d08bf6497209050073b2b28426 - 0.0% (1.25 KB)
[#008] sha256:93256fb42f6f29936fa8dcfbf30a17afa5e1febf6b73c72e60105158271112e0 - 0.0% (1.26 KB)
[#009] sha256:1e1306c0c4d5c8d084a3ef24fe13cd3e05ec0871a06c7c8cf12e9a656783e046 - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2025-04-16 03:49:18 UTCInstall update 10.0.20348.3566
2025-04-18 03:29:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2025-04-18 03:29:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.22
2025-04-18 03:29:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.22-signed.msi
2025-04-18 03:29:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=8d15563eae81fe7ec7530ab84cb04a9f7af16391dffbaa27d02ae9937b7e9c3c
2025-04-18 03:30:47 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.';
2025-04-18 03:30:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2025-04-18 03:30:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2025-04-18 03:30:56 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.