2021-04-14 20:57:38 UTC
5.67 GB
36253a0bac369179e6906144d67458c9547ae6bfa2680b2440d2538c7de25230
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.13-signed.msi
MONGO_VERSION4.2.13
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 66.87% (3.79 GB)
[#001] sha256:00b4edb823e6a375d179a28cbfa682c2379d62179e1518485902d6e68b9a9d1e - 28.34% (1.61 GB)
[#002] sha256:f616bb7876e6f944d82fa1802ffab5ca4931a63e1b999f0851b52120cda83539 - 0.0% (1.28 KB)
[#003] sha256:e7b34ead6ebb07b044e45d562390e978d683b68511d63ccb1846a4a613ac20e7 - 0.0% (1.39 KB)
[#004] sha256:2f897029413c6825aad1ae0d8ee91d6a08310dceab3817854ffad9a6af6d06ed - 0.0% (1.38 KB)
[#005] sha256:db53e56423134b30067c080533717aa7e753f46c3ce5787d80bc08a1217bdd4e - 0.0% (1.38 KB)
[#006] sha256:23cb7496d8b4296688643d05bb2217a30b072551ad7fb5d7a6429ee863206b1c - 4.79% (278 MB)
[#007] sha256:4f7dd57bb874328d74333ff96745b071febe8458171473e3799c168d5140b70f - 0.0% (1.39 KB)
[#008] sha256:3a445fecb71c8a289e9b1232a192ff99e1e2ecd4a75658cca67764670fb7a6ad - 0.0% (1.4 KB)
[#009] sha256:853e23f3010826006c2e4ae3e145186f31f78a260c49433fda4fb8b149cbe047 - 0.0% (1.4 KB)
Apply image 1607-RTM-amd64
2021-04-07 21:54:00 UTCInstall update ltsc2016-amd64
2021-04-14 13:22:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2021-04-14 20:53:20 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.13
2021-04-14 20:53:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.13-signed.msi
2021-04-14 20:53:22 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=36253a0bac369179e6906144d67458c9547ae6bfa2680b2440d2538c7de25230
2021-04-14 20:57:33 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=ServerNoService,Client,Router,MiscellaneousTools,MonitoringTools,ImportExportTools' ); if (-Not (Test-Path C:\mongodb\bin\mongo.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.';
2021-04-14 20:57:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2021-04-14 20:57:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2021-04-14 20:57:38 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.