Namespace
library
Image / Tag
mongo:5-windowsservercore-ltsc2022
Content Digest
sha256:54b966f707f455549db44be347cc21a9e753b5a055ab7129d3dcddee3835c2b3
Details
Created

2025-02-13 00:38:12 UTC

Size

2.4 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

fd7fdc89d5caeb56a86f5a5f67007435a48af9c80407b181b6edac0945bb2e63

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.31-signed.msi

MONGO_VERSION

5.0.31


Layers

[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 56.73% (1.36 GB)

[#001] sha256:76bc4873980ff6a1dec3c10adb1f289ccf73e4c47c8694420e8ff929f1476ada - 31.1% (765 MB)

[#002] sha256:c262e69bfc5fa32f2a14174837805b77a9a7fe9354d4a6d5b9162b4677f5e1aa - 0.0% (1.26 KB)

[#003] sha256:604606dd3ba920ab3bfd161dc6fd1cf0861a0db75e42d7214c2c47dc97c56165 - 0.0% (1.25 KB)

[#004] sha256:f4b9f18f9105a7d9419c2866aeadf120daf18384b9bc19357a47a625338a23f3 - 0.0% (1.25 KB)

[#005] sha256:accc80e1b5e7464cbdc29e6a69f384ff5c09b1d32a060f628c82565bbdd163d2 - 0.0% (1.26 KB)

[#006] sha256:1d2d2e40b83c7ac2e784da77ddd5f526a4c0099241c4c6bfc8f9814de94b74a5 - 12.17% (299 MB)

[#007] sha256:d84b4971f84b17becbb21185ac45b4fd0dfca345fa7c81821a0b6ba0e5caa8df - 0.0% (1.25 KB)

[#008] sha256:e641c54e30535ea0d7322cac7405e5ed10685f18265277ad28d0553d1943d6ee - 0.0% (1.25 KB)

[#009] sha256:80a62dae2c90270aa77cc0be4c929b43b8e3cf61e6016ac00b8c915a50da18c3 - 0.0% (1.26 KB)


History
2024-09-06 00:01:38 UTC

Apply image 10.0.20348.2700

2025-02-07 21:10:03 UTC

Install update 10.0.20348.3207

2025-02-13 00:37:30 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2025-02-13 00:37:31 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.31

2025-02-13 00:37:31 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.31-signed.msi

2025-02-13 00:37:32 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=fd7fdc89d5caeb56a86f5a5f67007435a48af9c80407b181b6edac0945bb2e63

2025-02-13 00:38:09 UTC

powershell -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.';

2025-02-13 00:38:10 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2025-02-13 00:38:11 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2025-02-13 00:38:12 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Danger Zone
Delete Tag

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.

Delete