2021-07-02 19:17:09 UTC
2.69 GB
ec26859c65e43b3933a6ee371155b5d95bc6acb88e87314776b7c5a01ca7fd0f
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.15-rc0-signed.msi
MONGO_VERSION4.2.15-rc0
[#000] sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f - 59.56% (1.6 GB)
[#001] sha256:639bb6bb2beb4cfdcacb9f0844344448fe26494665d5fe78a494419f86fbb18f - 32.0% (880 MB)
[#002] sha256:ae7d2dc4b590128efeafd375d02122e65a2525623ac2be100c1a390caf8a4b49 - 0.0% (1.37 KB)
[#003] sha256:d6d8278332af55c2f66aee4ec160ac54a1f1af20ffd5683f34954c27fc38424c - 0.0% (1.36 KB)
[#004] sha256:7b65ccae43985c49a3dfdb7a6e1815be352ef5cc2a6a867c2a5c214882b07f86 - 0.0% (1.4 KB)
[#005] sha256:31a1930b79cbf59425096d1cee3e8ecb2b2c5bb612f9272bb90f35574794ca77 - 0.0% (1.39 KB)
[#006] sha256:419375c8fcc76107df277bfbe7ef5a76728de94ca14756eea325868ad824db97 - 8.44% (232 MB)
[#007] sha256:4902ebfc33e9e529af693acadfb3cfbb40cec597177306bb7241bebec14699fa - 0.0% (1.41 KB)
[#008] sha256:2898ab83be5de8c002ee50d1f40e271e3c65c354f8327b3db5b72b21966f179d - 0.0% (1.38 KB)
[#009] sha256:cbaf751abb9db89a9312371b00a08eddf0602ce4d26745af0282e6d4d08d0cd1 - 0.0% (1.41 KB)
Apply image 1809-RTM-amd64
2021-06-06 04:28:43 UTCInstall update 1809-amd64
2021-06-09 13:15:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2021-07-02 19:15:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.2.15-rc0
2021-07-02 19:15:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.15-rc0-signed.msi
2021-07-02 19:15:14 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=ec26859c65e43b3933a6ee371155b5d95bc6acb88e87314776b7c5a01ca7fd0f
2021-07-02 19:17:00 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-02 19:17:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2021-07-02 19:17:07 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2021-07-02 19:17:09 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.