2021-07-19 17:58:44 UTC
6.02 GB
0060783c185c33f688c310f4626a74dc9d6947da26f1b14aee85c68f26f0748c
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.26-rc0-signed.msi
MONGO_VERSION4.0.26-rc0
[#000] sha256:3889bb8d808bbae6fa5a33e07093e65c31371bcf9e4c38c21be6b9af52ad1548 - 62.93% (3.79 GB)
[#001] sha256:a567de41cc349380b25967f180fb1b6b2431bda61ccaaf69d78a33bc9523614a - 34.01% (2.05 GB)
[#002] sha256:fed351b78c876c55ec9c7e75d3b9d1b146c5c5dfeb4b5480c0a7c384322df98c - 0.0% (1.41 KB)
[#003] sha256:9b525229ca30472e54f2c72c224d9d4c969d38324280927612e353ecb286da59 - 0.0% (1.29 KB)
[#004] sha256:18252ba3f0083df87811e6d040f6cf9272e5e79f9ba12d34ab884a66d6d48e74 - 0.0% (1.28 KB)
[#005] sha256:71f1d5e9f481dd792c2f92545236bafc0164a8f029260fc73406f3799cc4082e - 0.0% (1.29 KB)
[#006] sha256:5536dae4af5976bca30ec2cc2bd00aa6e898068226db7531e6eeb734ea16b374 - 3.06% (189 MB)
[#007] sha256:0544946455334866627863e5bc8ffb5d57e2b92417a14c31357db38a47391d81 - 0.0% (1.3 KB)
[#008] sha256:7b0ce214c5595708f27d90e3eae3f1c7fc35c71c6e4bf9d0d69af296fdb84f29 - 0.0% (1.28 KB)
[#009] sha256:2e86d292154a8ece6e634074780dd273e2d3727606dfd434839277ceb8c8f1e0 - 0.0% (1.4 KB)
Apply image 1607-RTM-amd64
2021-07-09 05:02:00 UTCInstall update ltsc2016-amd64
2021-07-14 01:14:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2021-07-19 17:55:34 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.26-rc0
2021-07-19 17:55:37 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.26-rc0-signed.msi
2021-07-19 17:55:39 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=0060783c185c33f688c310f4626a74dc9d6947da26f1b14aee85c68f26f0748c
2021-07-19 17:58: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,MiscellaneousTools,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.';
2021-07-19 17:58:38 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2021-07-19 17:58:41 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2021-07-19 17:58:44 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.