2019-03-15 10:40:13 UTC
2.16 GB
aeb91f88930c77828c45f6aa41ad8219a8bb7c90c1a3c308b92329afc907cb1c
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.6-signed.msi
MONGO_VERSION4.0.6
[#000] sha256:d9e8b01179bfc94a5bdb1810fbd76b999aa52016001ace2d3a4c4bc7065a9601 - 71.47% (1.55 GB)
[#001] sha256:be86bca8de59067e592a8becc2e83ed2465a6d9bce324043e434aa4a15493b00 - 25.55% (566 MB)
[#002] sha256:82981f58be95926db2383949a2f5a368e6a47da5ecef767833272099e4524a63 - 0.0% (1.18 KB)
[#003] sha256:2288b10755fcd7f8153fe9a8a378e277e1b412f74ef7dd9aed55f7e1d0338743 - 0.0% (1.19 KB)
[#004] sha256:aafcef9d1770a62805d7e929b8f6b9d2cf07ce98f752614e30322e0686324729 - 0.0% (1.18 KB)
[#005] sha256:149f3604bbc8d33d385112f6f041c8b78b98033195ccfbb8fad186f5de9da5fd - 0.0% (1.17 KB)
[#006] sha256:9ea7b13ef70e7ef5a257afdae6a7c9410232e45f80bfe11c787d9150f02977f4 - 2.98% (66.1 MB)
[#007] sha256:5a254cc0ae56cbb86bdd83c36d2dd1364daaaccf4f837be9f5f3a481c4b768b0 - 0.0% (1.17 KB)
[#008] sha256:47943c551dc7218eb7921e8403e158838c097c466564aadca8b523886732c1ed - 0.0% (1.17 KB)
[#009] sha256:8f7676168f478177c0a33e504bc582ee512dfeade1934267c1e2a20990273e46 - 0.0% (1.17 KB)
Apply image 10.0.17134.1
2019-03-08 23:20:01 UTCInstall update 10.0.17134.648
2019-03-15 10:36:55 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2019-03-15 10:36:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.0.6
2019-03-15 10:36:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.6-signed.msi
2019-03-15 10:36:58 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=aeb91f88930c77828c45f6aa41ad8219a8bb7c90c1a3c308b92329afc907cb1c
2019-03-15 10:40:06 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'); 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', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=all' ); $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:\mongodb\bin\*.pdb -Force; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2019-03-15 10:40:09 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2019-03-15 10:40:11 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2019-03-15 10:40:13 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.