2022-01-12 04:56:39 UTC
6.06 GB
44e49f5f15aec8f0a9792c48038b59a3faaf85946edcd51f021f8fd7e34edce5
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.27-signed.msi
MONGO_VERSION4.0.27
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 62.52% (3.79 GB)
[#001] sha256:8428508ffd63b4af1ba690ec41e82a116f10ec6c3fb70962348f5448d42e5835 - 33.92% (2.06 GB)
[#002] sha256:25aec0a6b64c784bf7521344203ee5def4d38eedfdd68f4b452d3250b5b9ddcf - 0.0% (1.3 KB)
[#003] sha256:fdc1794544490dbbdb37f104747cef9842b3d99b2afaf038094600eaf6ce7967 - 0.0% (1.39 KB)
[#004] sha256:e793ea788789eb4f1e6693d6c74bfec90477eb6ad73544dcc1469ce660067cda - 0.0% (1.36 KB)
[#005] sha256:c02506749d388aac2cba41d60c0d11eb4511400c232b4aaf6771d0721ba3134e - 0.0% (1.41 KB)
[#006] sha256:e9bf7c0d4195488502630fbd45a3d6f6c2b30af70207272c20c798eea95be7c7 - 3.56% (221 MB)
[#007] sha256:7536d75ae4917518bfe331fb33e618ef84688ff84fee1e40faf61b0615c43deb - 0.0% (1.39 KB)
[#008] sha256:bb222ae5e1e06adb5b89229cada85ad9ebf7375bf95434aa801954d49d684955 - 0.0% (1.39 KB)
[#009] sha256:0302f71f24e30b2f791c31b12b247e6a4e2f77522b5d54a380d366876bb00edc - 0.0% (1.39 KB)
Apply image 1607-RTM-amd64
2022-01-06 14:33:00 UTCInstall update ltsc2016-amd64
2022-01-11 19:57:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2022-01-12 04:53:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.27
2022-01-12 04:53:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.27-signed.msi
2022-01-12 04:53:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=44e49f5f15aec8f0a9792c48038b59a3faaf85946edcd51f021f8fd7e34edce5
2022-01-12 04:56:35 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,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' ); 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.';
2022-01-12 04:56:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2022-01-12 04:56:38 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2022-01-12 04:56:39 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.